From ca168448df46efb2095b8dc50e285f2fdd8d7380 Mon Sep 17 00:00:00 2001 From: Douglas Harcourt Parsons Date: Wed, 23 Oct 2024 16:12:31 +0100 Subject: [PATCH 1/2] Add repo token to setup-task action to prevent rate limiting --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d6d0b9c2..1aacd687 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,7 @@ jobs: uses: arduino/setup-task@v2 with: version: "3.x" + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Check out code into the Go module directory uses: actions/checkout@v4 - name: Get dependencies @@ -54,6 +55,7 @@ jobs: uses: arduino/setup-task@v2 with: version: "3.x" + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Check out code into the Go module directory uses: actions/checkout@v4 - name: Check if docs are up-to-date From a3df2e90488716b8d5078a3b3b666cb7bbd47c6f Mon Sep 17 00:00:00 2001 From: Douglas Harcourt Parsons Date: Wed, 23 Oct 2024 16:39:28 +0100 Subject: [PATCH 2/2] Fix checkouts for cache --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e00dc9b..8f0f0c64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Unshallow run: git fetch --prune --unshallow - name: Set up Go diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1aacd687..556fdbf6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: @@ -32,8 +34,6 @@ jobs: with: version: "3.x" repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - name: Get dependencies run: go mod download - name: Build @@ -46,6 +46,8 @@ jobs: timeout-minutes: 5 runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: @@ -56,8 +58,6 @@ jobs: with: version: "3.x" repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - name: Check if docs are up-to-date run: | task docs @@ -81,6 +81,8 @@ jobs: - "1.4.*" runs-on: ${{ matrix.os }} steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: @@ -90,8 +92,6 @@ jobs: with: terraform_version: ${{ matrix.terraform }} terraform_wrapper: false - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - name: Get dependencies run: go mod download - name: TF acceptance tests