mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
ci: move runner.os context from job-level env to step-level in canary workflow (#9233)
Co-authored-by: knqyf263 <knqyf263@users.noreply.github.com>
This commit is contained in:
7
.github/workflows/canary.yaml
vendored
7
.github/workflows/canary.yaml
vendored
@@ -23,14 +23,12 @@ jobs:
|
||||
name: Upload binaries
|
||||
needs: build-binaries # run this job after 'build-binaries' job completes
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CACHE_KEY: ${{ runner.os }}-bins-${{ github.workflow }}-${{ github.sha }}
|
||||
steps:
|
||||
- name: Restore Trivy binaries from cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: dist/
|
||||
key: ${{ env.CACHE_KEY }}
|
||||
key: ${{ runner.os }}-bins-${{ github.workflow }}-${{ github.sha }}
|
||||
|
||||
# Upload artifacts
|
||||
- name: Upload artifacts (trivy_Linux-64bit)
|
||||
@@ -65,4 +63,5 @@ jobs:
|
||||
run: |
|
||||
gh cache delete "$CACHE_KEY" --confirm
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CACHE_KEY: ${{ runner.os }}-bins-${{ github.workflow }}-${{ github.sha }}
|
||||
Reference in New Issue
Block a user