Skip to content

Commit

Permalink
Add GHCR package write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbom committed Oct 6, 2023
1 parent 288de46 commit 3f5d9c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Building and Pushing to Container Registries
name: Build and Publish to GHCR and MCR

on: [workflow_dispatch]

permissions:
Expand Down Expand Up @@ -53,6 +54,9 @@ jobs:
publish:
runs-on: ${{ matrix.os }}
needs: common
permissions:
contents: read
packages: write
strategy:
max-parallel: 4
matrix:
Expand Down Expand Up @@ -163,6 +167,8 @@ jobs:
update-manifest:
runs-on: ubuntu-latest
needs: [common, publish]
permissions:
packages: write
defaults:
run:
shell: pwsh
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
patch:
runs-on: ${{ matrix.os }}
needs: common
permissions:
packages: write
strategy:
max-parallel: 4
matrix:
Expand Down Expand Up @@ -132,6 +134,8 @@ jobs:
update-manifest:
runs-on: ubuntu-latest
needs: [common, patch]
permissions:
packages: write
defaults:
run:
shell: pwsh
Expand Down

0 comments on commit 3f5d9c5

Please sign in to comment.