Skip to content

Commit f5e40a7

Browse files
authoredJun 14, 2024
attempt to fix up docker push action (#244)
Signed-off-by: Alex Price <aprice@atlassian.com>
1 parent 03fdc86 commit f5e40a7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed
 

‎.github/workflows/docker-publish.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ jobs:
1717
push:
1818
runs-on: ubuntu-latest
1919
if: github.event_name == 'push'
20-
20+
permissions:
21+
contents: read
22+
packages: write
23+
attestations: write
24+
id-token: write
2125
steps:
2226
- uses: actions/checkout@v3
2327

@@ -34,13 +38,11 @@ jobs:
3438

3539
# Log in to GitHub Container registry
3640
- name: Login to GitHub Container Registry
37-
uses: docker/login-action@v2
41+
uses: docker/login-action@v3
3842
with:
3943
registry: ghcr.io
40-
# a PAT with `read:packages` and `write:packages` scopes is an Actions secret `CR_PAT`.
41-
# Doesn't support Org or Repo level PATs and no bot accounts
42-
username: ${{ secrets.CR_PAT_USER }}
43-
password: ${{ secrets.CR_PAT }}
44+
username: ${{ github.actor }}
45+
password: ${{ secrets.GITHUB_TOKEN }}
4446

4547
- name: Push image to GitHub Container Registry
4648
run: |

0 commit comments

Comments
 (0)
Failed to load comments.