-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: avoid confusion if setup-auth is already ran before #12
Conversation
…an in the outer scope this plugin doesn't fail
…credentials-explicitly
This reverts commit 746bda0.
… hopefully not interefere with our own auth
341f860
to
4fcd35f
Compare
await writeFile("sa.json", sa_json); | ||
await exec.exec(GCLOUD_BINARY, ['auth', 'activate-service-account', '--key-file=sa.json']); | ||
await exec.exec(GCLOUD_BINARY, ['container', 'clusters', 'get-credentials', name, '--zone', location, '--project', project]); | ||
const account = JSON.parse(sa_json).client_email; // get the account passed in. this will prevent issues when multiple accounts have been activated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is new
location, | ||
"--project", | ||
project, | ||
"--account", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is new
index.js
Outdated
await deleteFile("sa.json"); | ||
} | ||
|
||
function unsetGloudariables() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and with typo's
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe 🙈
you're very right
index.js
Outdated
@@ -164,6 +193,8 @@ async function run() { | |||
const context = github.context; | |||
await status("pending"); | |||
|
|||
unsetGloudariables(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new
8153487
to
6a0643b
Compare
No description provided.