Commit Graph

208 Commits

Author SHA1 Message Date
Seth Vargo
bf02f20c66
Reduce warnings to info level with a warning icon (#397)
With direct WIF, there are now many legitimate use cases for not
specifying a project_id or having a local checkout.
2024-02-25 14:29:20 -05:00
dependabot[bot]
51342a1a91
security: bump undici from 5.28.2 to 5.28.3 (#394)
Bumps [undici](https://github.com/nodejs/undici) from 5.28.2 to 5.28.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/nodejs/undici/releases">undici's
releases</a>.</em></p>
<blockquote>
<h2>v5.28.3</h2>
<h2>⚠️ Security Release ⚠️</h2>
<p>Fixes:</p>
<ul>
<li><a
href="https://github.com/nodejs/undici/security/advisories/GHSA-3787-6prv-h9w3">CVE-2024-24758
Proxy-Authorization header not cleared on cross-origin redirect in
fetch</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v5.28.2...v5.28.3">https://github.com/nodejs/undici/compare/v5.28.2...v5.28.3</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="e71cb4c88f"><code>e71cb4c</code></a>
Bumped v5.28.3</li>
<li><a
href="20c65b89f4"><code>20c65b8</code></a>
Fix tests for Node.js v20.11.0 (<a
href="https://redirect.github.com/nodejs/undici/issues/2618">#2618</a>)</li>
<li><a
href="8ec52cde66"><code>8ec52cd</code></a>
Fix tests for Node.js v21 (<a
href="https://redirect.github.com/nodejs/undici/issues/2609">#2609</a>)</li>
<li><a
href="d3aa574b12"><code>d3aa574</code></a>
Merge pull request from GHSA-3787-6prv-h9w3</li>
<li>See full diff in <a
href="https://github.com/nodejs/undici/compare/v5.28.2...v5.28.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=undici&package-manager=npm_and_yarn&previous-version=5.28.2&new-version=5.28.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/google-github-actions/auth/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 15:07:59 -05:00
Seth Vargo
ee1c1b641f
Add security considerations for Attribute Conditions (#393) 2024-02-07 08:19:20 -05:00
Seth Vargo
ec485ac236
Remove documentation on retries (deprecated) (#392) 2024-02-06 16:34:44 +00:00
Google GitHub Actions Bot
a6e2e39c0a
Release: v2.1.1 (#390)
## What's Changed
* Remove retry logic by @sethvargo in
https://github.com/google-github-actions/auth/pull/389
* Use an OAuth 2.0 access token for Domain-Wide Delegation by @sethvargo
in https://github.com/google-github-actions/auth/pull/388


**Full Changelog**:
https://github.com/google-github-actions/auth/compare/v2.1.0...b4f4057a105e0aaddb54a56ce4953ddf3fa4e1ea
2024-02-05 16:33:46 +00:00
Seth Vargo
b4f4057a10
Use an OAuth 2.0 access token for Domain-Wide Delegation (#388)
Fixes https://github.com/google-github-actions/auth/issues/387
2024-02-05 11:27:46 -05:00
Seth Vargo
39c96a3f1d
Remove retry logic (#389)
The retries make debugging strictly more complex, and it's not clear
that retrying provides actual value. If we need retries in the future,
we should push them down into the per-API level.
2024-02-02 21:10:46 +00:00
Google GitHub Actions Bot
5a50e58116
Release: v2.1.0 (#385)
## What's Changed
* Update deps by @sethvargo in
https://github.com/google-github-actions/auth/pull/384


**Full Changelog**:
https://github.com/google-github-actions/auth/compare/v2.0.1...aaf2e69f9516827f245e0f3568ac8b4abf6c1d6d
2024-01-23 02:09:45 +00:00
Seth Vargo
aaf2e69f95
Update deps (#384) 2024-01-22 21:04:58 -05:00
Google GitHub Actions Bot
f6de81663f
Release: v2.0.1 (#382)
## What's Changed
* Trigger release on pushes to release branches by @sethvargo in
https://github.com/google-github-actions/auth/pull/358
* Fix a small docs issue by @sethvargo in
https://github.com/google-github-actions/auth/pull/359
* Remove broken markdown links by @sethvargo in
https://github.com/google-github-actions/auth/pull/362
* Document that project_id might be required by @sethvargo in
https://github.com/google-github-actions/auth/pull/367
* Update README and CI to use latest version by @sethvargo in
https://github.com/google-github-actions/auth/pull/365
* Add service_account to WIF through SA example by @sethvargo in
https://github.com/google-github-actions/auth/pull/369
* Use new markdown syntax for alerts by @sethvargo in
https://github.com/google-github-actions/auth/pull/371
* Note .dockerignore in the exclusion for credentials by @sethvargo in
https://github.com/google-github-actions/auth/pull/376
* Support newline-separated inputs for delegates and access_token_scopes
by @sethvargo in https://github.com/google-github-actions/auth/pull/381


**Full Changelog**:
https://github.com/google-github-actions/auth/compare/v2.0.0...a57dd046551728ea4f537891f7c0b7758f71e77b
2024-01-08 17:39:31 -05:00
Seth Vargo
a57dd04655
Support newline-separated inputs for delegates and access_token_scopes (#381)
Fixes #380
2024-01-08 17:24:50 -05:00
Seth Vargo
fb74905737
Note .dockerignore in the exclusion for credentials (#376)
Closes https://github.com/google-github-actions/auth/pull/375

(Opening as me to trigger CI)

---------

Signed-off-by: Andrew Howden <hello@andrewhowden.com>
Signed-off-by: Seth Vargo <seth@sethvargo.com>
Co-authored-by: Andrew Howden <hello@andrewhowden.com>
2024-01-04 12:25:30 -05:00
Seth Vargo
56562ddf6a
Use new markdown syntax for alerts (#371) 2023-12-18 14:06:39 -05:00
Seth Vargo
5f7afaa53a
Add service_account to WIF through SA example (#369)
Refs https://github.com/google-github-actions/auth/issues/368
2023-12-13 23:17:38 -05:00
Seth Vargo
82c1c583d7
Update README and CI to use latest version (#365) 2023-12-13 10:28:29 -05:00
Seth Vargo
5e5db2b28b
Document that project_id might be required (#367) 2023-12-13 10:28:08 -05:00
Seth Vargo
b372ba41cf
Remove broken markdown links (#362) 2023-12-04 08:47:12 -05:00
Seth Vargo
042a3056d6
Fix a small docs issue (#359) 2023-11-29 15:46:17 +00:00
Seth Vargo
68ea0b8bd6
Trigger release on pushes to release branches (#358) 2023-11-28 22:49:37 -05:00
Google GitHub Actions Bot
67e9c72af6
Release: v2.0.0 (#355)
## What's Changed
* Add support for Direct Workload Identity auth by @sethvargo in
https://github.com/google-github-actions/auth/pull/348
* Add protection for release branches by @sethvargo in
https://github.com/google-github-actions/auth/pull/351
* Make auth universe-aware by @sethvargo in
https://github.com/google-github-actions/auth/pull/352
* Fix some examples to include project_id by @sethvargo in
https://github.com/google-github-actions/auth/pull/353


**Full Changelog**:
https://github.com/google-github-actions/auth/compare/v1.2.0...0a2edc185b2c194b4f6bcebc7a8f52ebce97cd91
2023-11-28 22:37:53 -05:00
Seth Vargo
0a2edc185b
Fix some examples to include project_id (#353) 2023-11-28 22:07:21 -05:00
Seth Vargo
7c4e01fd00
Make auth universe-aware (#352)
This adds support for making the action "universe" aware, so it will be
usable for TPC and GDCH.
2023-11-28 21:59:39 -05:00
Seth Vargo
097d292c04
Add protection for release branches (#351) 2023-11-28 10:52:27 -05:00
Seth Vargo
fe9207673e
Add support for Direct Workload Identity auth (#348)
This adds a new authentication mode, Direct Workload Identity
Federation. This new mode permits authenticating to Google Cloud
directly using the GitHub Actions OIDC token instead of proxying through
a Google Cloud Service Account.
2023-11-28 10:41:10 -05:00
Google GitHub Actions Bot
f105ef0cdb
Release: v1.2.0 (#346)
## What's Changed
* Update deps by @sethvargo in
https://github.com/google-github-actions/auth/pull/312
* dependabot: only do security updates by @sethvargo in
https://github.com/google-github-actions/auth/pull/320
* update all deps by @sethvargo in
https://github.com/google-github-actions/auth/pull/321
* Update README.md by @mattseymour in
https://github.com/google-github-actions/auth/pull/332
* Update deps to Node 20 by @sethvargo in
https://github.com/google-github-actions/auth/pull/339
* Drop chai and mocha deps by @sethvargo in
https://github.com/google-github-actions/auth/pull/342
* Switch to more resilient testing by @sethvargo in
https://github.com/google-github-actions/auth/pull/343
* Build latest versions by @sethvargo in
https://github.com/google-github-actions/auth/pull/345

## New Contributors
* @mattseymour made their first contribution in
https://github.com/google-github-actions/auth/pull/332

**Full Changelog**:
https://github.com/google-github-actions/auth/compare/v1.1.1...cf96593e466c3b0a34086310cd29fe5aa3f49ece
2023-11-20 18:38:48 +00:00
Seth Vargo
cf96593e46
Build latest versions (#345)
<!--
Thank you for proposing a pull request! Please note that SOME TESTS WILL
LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from
forks.
Someone from the team will review your Pull Request and respond.

Please describe your change and any implementation details below.
-->
2023-11-20 13:23:18 -05:00
Seth Vargo
292d120a9f
Switch to more resilient testing (#343) 2023-11-15 22:27:04 -05:00
Seth Vargo
04900d1e97
Drop chai and mocha deps (#342) 2023-11-15 08:33:15 -05:00
Seth Vargo
43a59886fc
Update deps (#339) 2023-11-08 06:22:12 -08:00
Matt Seymour
e607103ba4
Update README.md (#332)
Update code sample to use latest github action/checkout@v4.

Signed-off-by: Matt Seymour <mattaseymour@gmail.com>
2023-10-04 03:02:29 -04:00
Seth Vargo
87b651ab4a
update all deps (#321) 2023-07-11 12:37:56 -04:00
Seth Vargo
8738ec4f61
dependabot: only do security updates (#320) 2023-07-11 11:09:54 -04:00
Seth Vargo
ee81b78321
Update deps (#312)
Closes https://github.com/google-github-actions/auth/pull/304
2023-05-29 11:21:36 -04:00
Google GitHub Actions Bot
35b0e87d16
Release: v1.1.1 (#306)
## What's Changed
* Add support info by @sethvargo in
https://github.com/google-github-actions/auth/pull/303
* chore: update dependencies (automated) by @verbanicm in
https://github.com/google-github-actions/auth/pull/305


**Full Changelog**:
https://github.com/google-github-actions/auth/compare/v1.1.0...24b8285e35a6e4f8d1b395a5191e2d7682ec64b8
2023-05-08 14:19:11 -04:00
Mike Verbanic
24b8285e35
chore: update dependencies (automated) (#305) 2023-05-08 11:32:57 -04:00
Seth Vargo
286fc8e4ba
Add support info (#303) 2023-05-04 11:44:07 -07:00
Google GitHub Actions Bot
e8df18b60c
Release: v1.1.0 (#297)
## What's Changed
* fix: update doc versions by @verbanicm in
https://github.com/google-github-actions/auth/pull/240
* Only emit a warning if the envvar has changed by @sethvargo in
https://github.com/google-github-actions/auth/pull/245
* Update CI and deps by @sethvargo in
https://github.com/google-github-actions/auth/pull/248
* Document possible issues with org policies by @sethvargo in
https://github.com/google-github-actions/auth/pull/258
* Updated troubleshooting to add permissions example by @bseib in
https://github.com/google-github-actions/auth/pull/262
* Note that Firebase Admin Node.js SDK doesn't support WLIF by
@kevinthecheung in
https://github.com/google-github-actions/auth/pull/268
* chore: update dependencies (automated) by @verbanicm in
https://github.com/google-github-actions/auth/pull/274
* Document admission for all repos of an owner by @djbrown in
https://github.com/google-github-actions/auth/pull/279
* Switch to pull non-secret values from env by @sethvargo in
https://github.com/google-github-actions/auth/pull/288
* Emit a diff of each environment variable by @sethvargo in
https://github.com/google-github-actions/auth/pull/296
* Enable default retries of 3 retry attempts at 250ms backoff by
@sethvargo in https://github.com/google-github-actions/auth/pull/294

## New Contributors
* @bseib made their first contribution in
https://github.com/google-github-actions/auth/pull/262
* @kevinthecheung made their first contribution in
https://github.com/google-github-actions/auth/pull/268
* @djbrown made their first contribution in
https://github.com/google-github-actions/auth/pull/279

**Full Changelog**:
https://github.com/google-github-actions/auth/compare/v1.0.0...41d8fa4aaad5b21acb962af3a5112b0d1bd9cb1d
2023-04-17 23:02:56 +00:00
Seth Vargo
41d8fa4aaa
Enable default retries of 3 retry attempts at 250ms backoff (#294)
This changes the default behavior to enable retries. Retry logic has
existed for awhile, but required direct user action to enable. This
enables 3 retries with a fibonacci backoff of 250ms by default to handle
transient communication errors with upstream APIs.
2023-04-17 22:57:11 +00:00
Seth Vargo
14b54cc192
Emit a diff of each environment variable (#296)
Fixes https://github.com/google-github-actions/auth/issues/295
2023-04-17 22:52:00 +00:00
Seth Vargo
430ae13d31
Switch to pull non-secret values from env (#288) 2023-03-24 16:43:00 -04:00
Seth Vargo
f8751d9c29
Switch back to v0 2023-03-24 12:54:38 -04:00
Seth Vargo
7004cc6280
Temporarily use @main to test releases 2023-03-24 12:16:33 -04:00
Daniel Brown
5431d4afba
Document admission for all repos of an owner (#279)
I really struggleded several days with this and thankfully i found
https://github.com/google-github-actions/auth/issues/77#issuecomment-990371420
big thanks to @sethvargo ❤
as @dobromyslov already said, this should be documented
so I went ahead and created added a paragrah for this use case

---------

Signed-off-by: Daniel Brown <djbrown@users.noreply.github.com>
2023-03-24 10:24:13 -04:00
Mike Verbanic
b0a71801d2
chore: update dependencies (automated) (#274) 2023-03-17 10:31:40 -04:00
Kevin Cheung
126054d1a9
Note that Firebase Admin Node.js SDK doesn't support WLIF (#268)
<!--
Thank you for proposing a pull request! Please note that SOME TESTS WILL
LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from
forks.
Someone from the team will review your Pull Request and respond.

Please describe your change and any implementation details below.
-->

---------

Signed-off-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
2023-03-07 19:03:11 -05:00
Broc Seib
483e21d723
Updated troubleshooting to add permissions example (#262)
<!--
Thank you for proposing a pull request! Please note that SOME TESTS WILL
LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from
forks.
Someone from the team will review your Pull Request and respond.

Please describe your change and any implementation details below.
-->

Added another case that can cause `auth` to fail, helpful to users on
day one of using the tool and trying to understand what's happening.

Fixes
https://github.com/google-github-actions/auth/issues/260#issuecomment-1419662751
2023-02-21 09:06:08 -05:00
Seth Vargo
1475a55569
Document possible issues with org policies (#258)
Fixes GH-257
2023-01-24 09:02:03 -05:00
Seth Vargo
d4421b6014
Update CI and deps (#248) 2022-12-09 21:21:40 -05:00
Seth Vargo
46affe9814
Small README tweak 2022-12-06 14:41:49 -05:00
Seth Vargo
23620afd0f
Only emit a warning if the envvar has changed (#245) 2022-11-26 09:00:48 -05:00