File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 14
14
schedule :
15
15
- cron : ' 0 1 * * *'
16
16
merge_group :
17
+ permissions : read-all
17
18
18
19
concurrency :
19
20
group : ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
@@ -22,6 +23,9 @@ concurrency:
22
23
jobs :
23
24
build :
24
25
runs-on : ubuntu-24.04
26
+ permissions :
27
+ actions : write # Upload artifacts
28
+ security-events : write # Upload CodeQL results
25
29
steps :
26
30
- name : Check out Git repository
27
31
uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
79
83
image-scan :
80
84
needs : build
81
85
runs-on : ubuntu-24.04
82
-
86
+ permissions :
87
+ security-events : write # Upload Trivy SARIF results
83
88
steps :
84
89
- name : Download Torch Image
85
90
uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
@@ -270,8 +275,8 @@ jobs:
270
275
- env-var-check
271
276
runs-on : ubuntu-24.04
272
277
permissions :
273
- packages : write
274
- id-token : write
278
+ packages : write # Push to GitHub Container Registry
279
+ id-token : write # For Cosign signing
275
280
if : ${{ ! startsWith(github.head_ref, 'dependabot/')}}
276
281
277
282
steps :
You can’t perform that action at this time.
0 commit comments