Skip to content
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

Add optional credentials_file_path input for setup-gcloud #153

Conversation

bricker
Copy link
Contributor

@bricker bricker commented Jul 30, 2020

Fixes GH-144

  • Adds a new optional input to setup-gcloud which allows the caller to override the path at which the credentials are saved on disk. If not provided, the previous behavior (using GITHUB_WORKSPACE) is maintained.
  • Adds tests for this action

@bricker bricker force-pushed the bcr/202007/creds_path branch 4 times, most recently from d055c05 to 515e778 Compare July 30, 2020 17:23
@bricker
Copy link
Contributor Author

bricker commented Oct 2, 2020

@sethvargo How can I get this reviewed and merged?

@averikitsch
Copy link
Contributor

Hi @bricker, I'll review this shortly. I want to note that we are working on a new process for merging external contributions.

@@ -34,7 +34,7 @@ module.exports =
/******/ // the startup function
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the dist

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is built and added in a pre-commit hook (via Husky). Do you want me to delete this file, or just revert my changes? And should I remove the git hook too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pre-commit hook has been removed. Please revert the changes to the dist/index.js. We will be generating this file as a part of our release process.

setup-gcloud/tests/setup-gcloud.test.ts Outdated Show resolved Hide resolved
Co-authored-by: Averi Kitsch <akitsch@google.com>
@averikitsch averikitsch changed the base branch from master to contributor-credentials October 23, 2020 23:20
@averikitsch
Copy link
Contributor

merging into a testing branch

@averikitsch averikitsch merged commit 316ca66 into google-github-actions:contributor-credentials Oct 23, 2020
averikitsch added a commit that referenced this pull request Oct 27, 2020
#213)

* Add optional credentials_file_path input for setup-gcloud (#153)

* Add optional credentials_file_path input to setup-gcloud

* Update setup-gcloud/tests/setup-gcloud.test.ts

Co-authored-by: Averi Kitsch <akitsch@google.com>

Co-authored-by: Averi Kitsch <akitsch@google.com>

* Respond to comments

* lint

* update timeout

Co-authored-by: Bryan Ricker <bryancricker@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

export_default_credentials should place credentials outside of the workspace
3 participants