File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 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 : |
You can’t perform that action at this time.
0 commit comments