Kubernetes use env var based secrets
parent
03cb26f073
commit
18828c059e
|
|
@ -3539,13 +3539,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.GithubCliReader = void 0;
|
||||
const assert_1 = __importDefault(__webpack_require__(42357));
|
||||
const system_1 = __importDefault(__webpack_require__(62177));
|
||||
class GithubCliReader {
|
||||
static GetGitHubAuthToken() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
assert_1.default(yield system_1.default.run(`gh --help`, [], {}, false));
|
||||
return yield system_1.default.run(`gh auth status -t`, [], {}, false);
|
||||
}
|
||||
catch (_a) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,10 +1,8 @@
|
|||
import assert from 'assert';
|
||||
import System from '../system';
|
||||
|
||||
export class GithubCliReader {
|
||||
static async GetGitHubAuthToken() {
|
||||
try {
|
||||
assert(await System.run(`gh --help`, [], {}, false));
|
||||
return await System.run(`gh auth status -t`, [], {}, false);
|
||||
} catch {
|
||||
return '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue