Skip to content

Commit

Permalink
Merge pull request #1097 from onekey-sec/fix-docker-permission
Browse files Browse the repository at this point in the history
ci: fix docker registry permission
  • Loading branch information
qkaiser authored and vlaci committed Feb 4, 2025
2 parents 3a7c6a1 + ac0550b commit 064e1ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ jobs:
name: Build Docker image
if: github.event_name == 'push' || contains(github.event.*.labels.*.name, 'dependencies')
needs: [build_linux_wheels]
permissions:
# needed for sarif report upload
security-events: write
# needed for pushing to registry
packages: write
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -377,6 +382,9 @@ jobs:
runs-on: ubuntu-latest
needs:
- build-image
permissions:
# needed for pushing to registry
packages: write
steps:
- name: Download digests
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 064e1ad

Please sign in to comment.