Skip to content

Commit

Permalink
update ci workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mauwii committed Sep 30, 2023
1 parent 1292d9a commit 7dd530a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ on:

permissions:
contents: read
packages: write
pull-requests: write

env:
REGISTRY: ${{ (vars.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '') && 'docker.io' || 'ghcr.io' }}
Expand Down Expand Up @@ -70,6 +68,11 @@ jobs:
build:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
pull-requests: write
security-events: write
strategy:
matrix:
targets: ${{ fromJson(needs.test.outputs.targets) }}
Expand Down

0 comments on commit 7dd530a

Please sign in to comment.