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 }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.GithubCliReader = void 0;
|
exports.GithubCliReader = void 0;
|
||||||
const assert_1 = __importDefault(__webpack_require__(42357));
|
|
||||||
const system_1 = __importDefault(__webpack_require__(62177));
|
const system_1 = __importDefault(__webpack_require__(62177));
|
||||||
class GithubCliReader {
|
class GithubCliReader {
|
||||||
static GetGitHubAuthToken() {
|
static GetGitHubAuthToken() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
assert_1.default(yield system_1.default.run(`gh --help`, [], {}, false));
|
|
||||||
return yield system_1.default.run(`gh auth status -t`, [], {}, false);
|
return yield system_1.default.run(`gh auth status -t`, [], {}, false);
|
||||||
}
|
}
|
||||||
catch (_a) {
|
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';
|
import System from '../system';
|
||||||
|
|
||||||
export class GithubCliReader {
|
export class GithubCliReader {
|
||||||
static async GetGitHubAuthToken() {
|
static async GetGitHubAuthToken() {
|
||||||
try {
|
try {
|
||||||
assert(await System.run(`gh --help`, [], {}, false));
|
|
||||||
return await System.run(`gh auth status -t`, [], {}, false);
|
return await System.run(`gh auth status -t`, [], {}, false);
|
||||||
} catch {
|
} catch {
|
||||||
return '';
|
return '';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue