@@ -23,44 +23,46 @@ jobs:
2323 ECR_ACCESS_KEY_ID : ${{ secrets.ECR_ACCESS_KEY_ID }}
2424 ECR_SECRET_ACCESS_KEY : ${{ secrets.ECR_SECRET_ACCESS_KEY }}
2525 GPG_KEY : ${{ secrets.GPG_KEY }}
26- ORG_REPO_TOKEN : ${{ secrets.ORG_REPO_TOKEN }}
26+ TRIVY_REPO_TOKEN : ${{ secrets.TRIVY_REPO_TOKEN }}
2727 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
2828
2929 upload-binaries :
3030 name : Upload binaries
3131 needs : build-binaries # run this job after 'build-binaries' job completes
32- runs-on : ubuntu-latest
32+ runs-on : ubuntu-2404-2core
33+ permissions :
34+ actions : write # Required to delete caches
3335 steps :
3436 - name : Restore Trivy binaries from cache
35- uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
37+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
3638 with :
3739 path : dist/
3840 key : ${{ runner.os }}-bins-${{ github.workflow }}-${{ github.sha }}
3941
4042 # Upload artifacts
4143 - name : Upload artifacts (trivy_Linux-64bit)
42- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
44+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
4345 with :
4446 name : trivy_Linux-64bit
4547 path : dist/trivy_*_Linux-64bit.tar.gz
4648 if-no-files-found : error
4749
4850 - name : Upload artifacts (trivy_Linux-ARM64)
49- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
51+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
5052 with :
5153 name : trivy_Linux-ARM64
5254 path : dist/trivy_*_Linux-ARM64.tar.gz
5355 if-no-files-found : error
5456
5557 - name : Upload artifacts (trivy_macOS-64bit)
56- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
58+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
5759 with :
5860 name : trivy_macOS-64bit
5961 path : dist/trivy_*_macOS-64bit.tar.gz
6062 if-no-files-found : error
6163
6264 - name : Upload artifacts (trivy_macOS-ARM64)
63- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
65+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
6466 with :
6567 name : trivy_macOS-ARM64
6668 path : dist/trivy_*_macOS-ARM64.tar.gz
0 commit comments