Skip to content

Commit 9543e57

Browse files
committed
ci: Give write permissions to packages to workflow
There was more stricted default permissions on the upstream repo than I had in the repo where I tested the CI. This change gives the workflow the permission that is needed to publish to GHCR.
1 parent bccecb5 commit 9543e57

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/ci-dev-container.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
outputs:
1616
container-repo: ${{ steps.version.outputs.repo }}
1717
container-version: ${{ steps.version.outputs.version }}
18+
permissions:
19+
contents: read
20+
packages: write
1821
steps:
1922
- name: Clone the repo
2023
uses: actions/checkout@v4

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
dev-container:
1212
uses: ./.github/workflows/ci-dev-container.yml
1313
secrets: inherit
14+
permissions:
15+
contents: read
16+
packages: write
1417
ci:
1518
needs: [dev-container]
1619
uses: ./.github/workflows/ci-common.yml

.github/workflows/pr-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
dev-container:
1212
uses: ./.github/workflows/ci-dev-container.yml
1313
secrets: inherit
14+
permissions:
15+
contents: read
16+
packages: write
1417

1518
pr-head-ci:
1619
needs: [dev-container]

0 commit comments

Comments
 (0)