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 17
17
push :
18
18
runs-on : ubuntu-latest
19
19
if : github.event_name == 'push'
20
-
20
+ permissions :
21
+ contents : read
22
+ packages : write
23
+ attestations : write
24
+ id-token : write
21
25
steps :
22
26
- uses : actions/checkout@v3
23
27
@@ -34,13 +38,11 @@ jobs:
34
38
35
39
# Log in to GitHub Container registry
36
40
- name : Login to GitHub Container Registry
37
- uses : docker/login-action@v2
41
+ uses : docker/login-action@v3
38
42
with :
39
43
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 }}
44
46
45
47
- name : Push image to GitHub Container Registry
46
48
run : |
You can’t perform that action at this time.
0 commit comments