Skip to content

Commit

Permalink
ci: fix grype cache path due to runner context limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmoraes committed Aug 27, 2022
1 parent 783501d commit 0fed115
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ jobs:
runs-on: ubuntu-latest
needs: [build, lint, test]
env:
GRYPE_DB_CACHE_DIR: ${{ runner.temp }}/.cache/grype/db/
# runner context is not available here...
GRYPE_DB_CACHE_TEMP_PATH: .cache/grype/db/
steps:
- name: checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -352,7 +353,7 @@ jobs:
- name: cache grype
uses: pat-s/always-upload-cache@v2.1.5
with:
path: ${{ env.GRYPE_DB_CACHE_DIR }}
path: ${{ runner.temp }}/${{ env.GRYPE_DB_CACHE_TEMP_PATH }}
key: ${{ runner.os }}-grype-${{ hashFiles('.grype.yaml') }}
restore-keys: |
${{ runner.os }}-grype-${{ hashFiles('.grype.yaml') }}
Expand Down

0 comments on commit 0fed115

Please sign in to comment.