Skip to content

Commit e4a4eb9

Browse files
committed
ci: fix docker registry permission
The default permission of the job has been restricted, so we need to opt-in for a higher permission level in the docker image builder job. https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
1 parent 3a7c6a1 commit e4a4eb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: .github/workflows/CI.yml

+3
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ jobs:
276276
name: Build Docker image
277277
if: github.event_name == 'push' || contains(github.event.*.labels.*.name, 'dependencies')
278278
needs: [build_linux_wheels]
279+
permissions:
280+
security-events: write # sarif
281+
packages: write # registry
279282
runs-on: ubuntu-latest
280283
strategy:
281284
fail-fast: false

0 commit comments

Comments
 (0)