Skip to content

Commit

Permalink
Revert to using PAT for writing images
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
mering committed Oct 31, 2023
1 parent ef95667 commit 3ee195f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency: testing
Expand All @@ -24,8 +23,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- name: lower case repository_owner
id: lower_case_repository_owner
uses: ASzc/change-string-case-action@v2
Expand Down Expand Up @@ -57,8 +56,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- name: lower case repository_owner
id: lower_case_repository_owner
uses: ASzc/change-string-case-action@v2
Expand Down

0 comments on commit 3ee195f

Please sign in to comment.