Skip to content

Commit df7b866

Browse files
committed
Add workflow write permissions
1 parent 3610d8e commit df7b866

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/publish-image.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ on:
77

88
jobs:
99
build-and-publish:
10-
permissions: write-all
1110
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1213

1314
steps:
1415
- name: Checkout code
@@ -27,7 +28,7 @@ jobs:
2728
with:
2829
registry: ghcr.io
2930
username: ${{ github.actor }}
30-
password: ${{ secrets.GH_PAT }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
3132

3233
- name: Build and push Docker image
3334
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)