Commit graph

28 commits

Author SHA1 Message Date
Seth Vargo
ef52f8c087
Introduce an option to skip the tool cache (#718)
Closes https://github.com/google-github-actions/setup-gcloud/issues/701
2025-08-08 16:35:06 -04:00
Seth Vargo
4f016c9ca7
Update deps (#691) 2024-08-05 16:11:33 -04:00
Seth Vargo
012c5df3ac
Update deps and switch to autodoc (#690) 2024-05-28 19:57:36 +00:00
Seth Vargo
744a572c20
Disable prompts (#688) 2024-05-01 18:40:25 +00:00
Seth Vargo
191b97bd2f
Fix edge case when gcloud is not installed at all (#672) 2023-12-21 03:49:01 +00:00
Seth Vargo
fd83cd9564
Only warn when there are no authentications (#671)
This fixes an issue where a warning message would be printed on systems
using ADC from the metadata server.

Fixes https://github.com/google-github-actions/setup-gcloud/issues/670
2023-12-20 22:31:37 -05:00
Seth Vargo
f14c440264
Don't warn when version is "latest" (#669)
Fixes https://github.com/google-github-actions/setup-gcloud/issues/668
2023-12-19 17:22:41 -05:00
Seth Vargo
5f47137cb3
Fix docs about component installation for system-provided (#615)
Closes https://github.com/google-github-actions/setup-gcloud/issues/610
2023-02-06 16:38:24 -10:00
Seth Vargo
10b5bd2b6d
Add support for specifying version constraints (#612)
This adds support for specifying a version _constraint_ for the version
of gcloud. Since the GitHub Actions runners pre-install a version of
gcloud, this can dramatically reduce CI times.
2023-02-02 19:21:19 -05:00
Seth Vargo
fb149a7b94
Note that metrics export should not be copied (#604) 2022-12-15 12:13:22 -05:00
Seth Vargo
65a3df0bf4
Reduce duplicate in integration tests (#591)
⚠️ 🚧 

As part of the 1.0 release, we removed service_account support from
setup-gcloud, but many of the integration tests were actually duplicates
now, since they used to test service_account. This updates the
integration tests to run all the tests in a single job (reducing the
number of times we install NPM packages and download gcloud).
2022-11-10 16:43:12 -05:00
Seth Vargo
1e0945d60c
Force authentication if GOOGLE_GHA_CREDS_PATH is set (#587)
* Force authentication if GOOGLE_GHA_CREDS_PATH is set

* Upgrade to latest setup-cloud-sdk package
2022-11-09 21:50:04 -05:00
Kengo TODA
2c04298303
fix: suggest v1 instead of v0 (#584)
Signed-off-by: Kengo TODA <skypencil@gmail.com>

Signed-off-by: Kengo TODA <skypencil@gmail.com>
2022-11-09 08:51:34 -05:00
Mike Verbanic
ec49dc1630
feat: update for 1.0 release (#580) 2022-11-08 15:56:43 -05:00
Seth Vargo
db80c6a94e
docs: update references from master -> main (#544) 2022-04-05 11:04:56 -04:00
Seth Vargo
2ed7f35b1e
chore: setFailed instead of throwing (#541) 2022-03-21 17:57:32 -05:00
Seth Vargo
879bcbe99b
feat: throw a very specific error when pinned to master (#537)
This can be overridden by setting an environment variable.
2022-03-21 17:34:21 -05:00
Seth Vargo
622063f406
chore: switch to writeSecureFile from actions-utils (#535) 2022-03-18 16:08:52 -04:00
Seth Vargo
5cb418735f
chore: update deps and use new cloud sdk (#495)
This should resolve issues where output is swallowed
2022-02-03 20:35:49 -06:00
Averi Kitsch
489ab62c6e
feat: add install_component field (#399)
* feat:add install_component field

* lint

* fix install

* debug

* update test

* comments

* Update readme

* lint

* lint
2022-01-05 13:42:03 -08:00
Seth Vargo
1a48ffaf04
feat: emit a warning when action is pinned to head (#460) 2021-12-29 11:53:32 -06:00
Seth Vargo
0f2d46d46d
bug: only cleanup credentials if credentials were exported (#458) 2021-12-23 10:40:22 -06:00
Bharath KKB
aaf4f27520
fix: support export auth export with envvar for backwards compat (#426)
* add export auth json test

* support export from envvar

* refactor export logic

* missing quotes

* fix stubs, add more tests

* add quotes

* unused dep

* project id precedence

* fix err

* add warning for future removal
2021-12-22 11:10:44 -06:00
Bharath KKB
f38d54f0d7
feat: Support WIF creds (#413)
* update sdk pkg

* add auth

* docs

* address comments
2021-12-02 11:38:22 -06:00
Seth Vargo
de988cc45d
Revert back to using GITHUB_WORKSPACE for storing credentials (#412) 2021-12-01 11:30:44 -06:00
Seth Vargo
9bd5f65b7f
feat: Export credentials into RUNNER_TEMP instead of GITHUB_WORKSPACE (#405)
This will ensure the credentials do no persist beyond the run, but are still available to all other steps in the job.
2021-11-30 16:04:23 -06:00
Averi Kitsch
990c038e2c
feat: update to use setup-cloud-sdk package (#397)
* feat: update to use setup-cloud-sdk package

* Update deps

* fix lint
2021-11-24 13:04:06 -08:00
T Hernandez
38fab8887c
feat: cleanup old actions(#331)
* First pass of cleanup of old actions code

* fixed primary CHANGELOG file from setup-gcloud shift

* cleaning up old workflows

* removing working-directory spec as it's no longer needed

* Moar cleanup on the path to cleanup redemption

* "it now builds and tests pass locally"

* lint error cleanup

* More path cleanup

* addressing PR comments, more cleanup

* missed two files in last update

* Update README.md

Co-authored-by: Averi Kitsch <akitsch@google.com>
2021-07-23 13:24:52 -05:00