Kubernetes use env var based secrets
parent
d276837797
commit
f66ee80519
|
|
@ -3542,7 +3542,7 @@ 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 -v`));
|
assert_1.default(yield system_1.default.run(`gh --help`));
|
||||||
return yield system_1.default.run(`gh auth status -t`);
|
return yield system_1.default.run(`gh auth status -t`);
|
||||||
}
|
}
|
||||||
catch (_a) {
|
catch (_a) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@ import System from '../system';
|
||||||
export class GithubCliReader {
|
export class GithubCliReader {
|
||||||
static async GetGitHubAuthToken() {
|
static async GetGitHubAuthToken() {
|
||||||
try {
|
try {
|
||||||
assert(await System.run(`gh -v`));
|
assert(await System.run(`gh --help`));
|
||||||
return await System.run(`gh auth status -t`);
|
return await System.run(`gh auth status -t`);
|
||||||
} catch {
|
} catch {
|
||||||
return '';
|
return '';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue