We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1816855 + 749c135 commit cc638baCopy full SHA for cc638ba
1 file changed
.github/workflows/build-and-push.yml
@@ -1,5 +1,10 @@
1
name: Build and Push Docker Image
2
3
+# Top-level permissions: explicitly request package write rights for GITHUB_TOKEN
4
+permissions:
5
+ contents: read
6
+ packages: write
7
+
8
on:
9
push:
10
branches:
@@ -27,7 +32,7 @@ jobs:
27
32
uses: docker/login-action@v3
28
33
with:
29
34
registry: ghcr.io
30
- username: ${{ github.actor }}
35
+ username: ${{ github.repository_owner }}
31
36
password: ${{ secrets.GITHUB_TOKEN }}
37
38
- name: Build and push Docker image
0 commit comments