Skip to content

Commit cc638ba

Browse files
authored
Merge pull request #1 from leonpwd/copilot/update-ghcr-permissions
L'IA, c'est que le début
2 parents 1816855 + 749c135 commit cc638ba

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build-and-push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Build and Push Docker Image
22

3+
# Top-level permissions: explicitly request package write rights for GITHUB_TOKEN
4+
permissions:
5+
contents: read
6+
packages: write
7+
38
on:
49
push:
510
branches:
@@ -27,7 +32,7 @@ jobs:
2732
uses: docker/login-action@v3
2833
with:
2934
registry: ghcr.io
30-
username: ${{ github.actor }}
35+
username: ${{ github.repository_owner }}
3136
password: ${{ secrets.GITHUB_TOKEN }}
3237

3338
- name: Build and push Docker image

0 commit comments

Comments
 (0)