Skip to content

Commit

Permalink
attempt to fix up docker push action (#244)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Price <aprice@atlassian.com>
  • Loading branch information
awprice committed Jun 14, 2024
1 parent 03fdc86 commit f5e40a7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'

permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v3

Expand All @@ -34,13 +38,11 @@ jobs:

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

- name: Push image to GitHub Container Registry
run: |
Expand Down

0 comments on commit f5e40a7

Please sign in to comment.