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:
Teppei Fukuda
2025-07-22 15:06:02 +04:00
committed by GitHub
parent b4f2457ea1
commit 74f92b56b9

View File

@@ -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 }}