Skip to content

Commit 66532e8

Browse files
authored
fix ghcr packages write permission
1 parent d2893a6 commit 66532e8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v6
2828

2929
- name: Set up QEMU
3030
uses: docker/setup-qemu-action@v3
@@ -34,14 +34,14 @@ jobs:
3434
version: latest
3535

3636
- name: Login to ghcr
37-
uses: docker/login-action@v1
37+
uses: docker/login-action@v3
3838
with:
3939
registry: ghcr.io
40-
username: ${{ secrets.CR_USERNAME }}
41-
password: ${{ secrets.CR_PAT }}
40+
username: ${{ github.actor }}
41+
password: ${{ secrets.GITHUB_TOKEN }}
4242

4343
- name: Build
44-
uses: docker/build-push-action@v5
44+
uses: docker/build-push-action@v6
4545
with:
4646
file: ${{ matrix.distro }}/Dockerfile
4747
context: .
@@ -69,7 +69,7 @@ jobs:
6969
uses: docker/setup-qemu-action@v3
7070

7171
- name: Checkout CKB
72-
uses: actions/checkout@v2
72+
uses: actions/checkout@v6
7373
with:
7474
repository: nervosnetwork/ckb
7575
path: ckb
@@ -105,8 +105,8 @@ jobs:
105105
uses: docker/login-action@v1
106106
with:
107107
registry: ghcr.io
108-
username: ${{ secrets.CR_USERNAME }}
109-
password: ${{ secrets.CR_PAT }}
108+
username: ${{ github.actor }}
109+
password: ${{ secrets.GITHUB_TOKEN }}
110110

111111
- name: Login to DockerHub
112112
uses: docker/login-action@v1

0 commit comments

Comments
 (0)