Skip to content

Commit 1906219

Browse files
committed
Revert to using PAT for writing images
The maximum permissions of GITHUB_TOKEN secret for pull requests from public forked repositories are read according to the [docs](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token).
1 parent ef95667 commit 1906219

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
uses: docker/login-action@v2
2525
with:
2626
registry: ghcr.io
27-
username: ${{ github.repository_owner }}
28-
password: ${{ secrets.GITHUB_TOKEN }}
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.PAT_TOKEN }}
2929
- name: lower case repository_owner
3030
id: lower_case_repository_owner
3131
uses: ASzc/change-string-case-action@v2
@@ -57,8 +57,8 @@ jobs:
5757
uses: docker/login-action@v2
5858
with:
5959
registry: ghcr.io
60-
username: ${{ github.repository_owner }}
61-
password: ${{ secrets.GITHUB_TOKEN }}
60+
username: ${{ github.actor }}
61+
password: ${{ secrets.PAT_TOKEN }}
6262
- name: lower case repository_owner
6363
id: lower_case_repository_owner
6464
uses: ASzc/change-string-case-action@v2

0 commit comments

Comments
 (0)