Skip to content

Commit

Permalink
fix: permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
lehmanju committed May 7, 2024
1 parent 4ba0ab1 commit 80e4734
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
uses: lehmanju/containers/.github/workflows/get-changed-images.yaml@main

build-images:
permissions:
contents: read
packages: write
needs: ["get-changed-images"]
if: ${{ needs.get-changed-images.outputs.addedOrModified == 'true' }}
uses: lehmanju/containers/.github/workflows/build-images.yaml@main
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
uses: lehmanju/containers/.github/workflows/get-changed-images.yaml@main

build-images:
permissions:
contents: read
packages: write
needs: ["get-changed-images"]
if: ${{ needs.get-changed-images.outputs.addedOrModified == 'true' }}
uses: lehmanju/containers/.github/workflows/build-images.yaml@main
Expand Down

0 comments on commit 80e4734

Please sign in to comment.