Skip to content

Commit

Permalink
Define required permissions for pre-release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Dec 20, 2024
1 parent 98ed490 commit 2b1f9f7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/create-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ on:
- rc
- snapshot
required: false

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

permissions:
contents: write
packages: write

jobs:
build:
if: ${{ github.actor != 'dependabot'}}
Expand All @@ -48,7 +52,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -71,7 +75,7 @@ jobs:
sleep 10
curl http://localhost:3000
- run: echo "${{ github.ref }}"
- name: Tag a final release
- name: Tag a final release
id: prerelease
uses: actionsdesk/semver@0.6.0-rc.10
with:
Expand Down

0 comments on commit 2b1f9f7

Please sign in to comment.