From db6919d07466cc48f0294f11cd9b28bb8d3130d2 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Wed, 9 Mar 2022 00:18:30 +0900 Subject: [PATCH] Update actions/checkout to v3 (#148) * chore: update actions/checkout to v3 Signed-off-by: Koichi Shiraishi * chore: update docs to actions/checkout@v3 Signed-off-by: Koichi Shiraishi --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 8 ++++---- README.md | 18 +++++++++--------- docs/TROUBLESHOOTING.md | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae3cb63..d47259b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: build: runs-on: 'ubuntu-latest' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - uses: 'actions/setup-node@v2' with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d329b05..d97ac5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: runs-on: 'ubuntu-latest' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - uses: 'actions/setup-node@v2' with: @@ -48,7 +48,7 @@ jobs: - 'macos-latest' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - uses: 'actions/setup-node@v2' with: @@ -116,7 +116,7 @@ jobs: id-token: 'write' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - uses: 'actions/setup-node@v2' with: @@ -181,7 +181,7 @@ jobs: strategy: fail-fast: false steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - uses: 'actions/setup-node@v2' with: diff --git a/README.md b/README.md index 05bc85f..9e17227 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ and permissions on Google Cloud. configure a Google Cloud Workload Identity Provider. See [setup](#setup) for instructions. -- You must run the `actions/checkout@v2` step _before_ this action. Omitting +- You must run the `actions/checkout@v3` step _before_ this action. Omitting the checkout step or putting it after `auth` will cause future steps to be unable to authenticate. @@ -60,7 +60,7 @@ jobs: steps: # actions/checkout MUST come before auth - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - id: 'auth' name: 'Authenticate to Google Cloud' @@ -201,7 +201,7 @@ regardless of the authentication mechanism. jobs: job_id: steps: - - uses: 'actions/checkout@v2' # Must come first! + - uses: 'actions/checkout@v3' # Must come first! - uses: 'google-github-actions/auth@v0' ``` @@ -249,7 +249,7 @@ jobs: id-token: 'write' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - id: 'auth' name: 'Authenticate to Google Cloud' @@ -277,7 +277,7 @@ jobs: # ... steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - id: 'auth' name: 'Authenticate to Google Cloud' @@ -303,7 +303,7 @@ examples: jobs: job_id: steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' - id: 'auth' name: 'Authenticate to Google Cloud' @@ -349,7 +349,7 @@ jobs: id-token: 'write' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' # Configure Workload Identity Federation via a credentials file. - id: 'auth' @@ -393,7 +393,7 @@ jobs: id-token: 'write' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' # Configure Workload Identity Federation and generate an access token. - id: 'auth' @@ -433,7 +433,7 @@ jobs: id-token: 'write' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v3' # Configure Workload Identity Federation and generate an access token. - id: 'auth' diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md index 4714943..c441bfb 100644 --- a/docs/TROUBLESHOOTING.md +++ b/docs/TROUBLESHOOTING.md @@ -21,7 +21,7 @@ further debug: 1. Look at the [debug logs][debug-logs] to see exactly which step is failing. Ensure you are using the latest version of that GitHub Action. -1. Make sure you use `actions/checkout@v2` **before** the `auth` action in your +1. Make sure you use `actions/checkout@v3` **before** the `auth` action in your workflow. 1. If the failing action is from `google-github-action/*`, please file an issue