Skip to content

Commit

Permalink
ci: fix docker registry permission
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vlaci committed Feb 4, 2025
1 parent 3a7c6a1 commit 0e96af5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ jobs:
name: Build Docker image
if: github.event_name == 'push' || contains(github.event.*.labels.*.name, 'dependencies')
needs: [build_linux_wheels]
permissions:
content: read
packages: write
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit 0e96af5

Please sign in to comment.