Skip to content

Commit

Permalink
fix(gha): prevent runnder from traversing entire repository
Browse files Browse the repository at this point in the history
We have seen issues where the runner does not have permissions to enter
a certain directory. Then the post-step of the cache will fail in GHA.
  • Loading branch information
fredrikaverpil committed Aug 22, 2024
1 parent 32c6646 commit c1b157f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ runs:
/home/runner/.cache/go-build
/home/runner/go/pkg/mod
/home/runner/go/bin
key: ${{ runner.os }}-${{ github.ref_name }}-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-${{ github.ref_name }}-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('*/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ github.base_ref }}-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}
${{ runner.os }}-${{ github.base_ref }}-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('*/go.sum') }}

0 comments on commit c1b157f

Please sign in to comment.