Skip to content

Commit 2b1f9f7

Browse files
committed
Define required permissions for pre-release workflow
Signed-off-by: Kyle Harding <[email protected]>
1 parent 98ed490 commit 2b1f9f7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/create-pre-release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ on:
2626
- rc
2727
- snapshot
2828
required: false
29-
29+
3030
env:
3131
REGISTRY: ghcr.io
3232
IMAGE_NAME: ${{ github.repository }}
3333

34+
permissions:
35+
contents: write
36+
packages: write
37+
3438
jobs:
3539
build:
3640
if: ${{ github.actor != 'dependabot'}}
@@ -48,7 +52,7 @@ jobs:
4852
- name: Set up Docker Buildx
4953
uses: docker/setup-buildx-action@v3
5054
- name: Log in to the Container registry
51-
uses: docker/login-action@v3
55+
uses: docker/login-action@v3
5256
with:
5357
registry: ${{ env.REGISTRY }}
5458
username: ${{ github.actor }}
@@ -71,7 +75,7 @@ jobs:
7175
sleep 10
7276
curl http://localhost:3000
7377
- run: echo "${{ github.ref }}"
74-
- name: Tag a final release
78+
- name: Tag a final release
7579
id: prerelease
7680
uses: actionsdesk/[email protected]
7781
with:

0 commit comments

Comments
 (0)