Skip to content

Commit ce498e9

Browse files
authored
workflows: use GITHUB_TOKEN instead of PACKAGE_TOKEN (bnb-chain#3619) (bnb-chain#3620)
1 parent 90bc7b4 commit ce498e9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/docker-release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- os: ubuntu-24.04-arm
2020
platform_pair: linux-arm64
2121
runs-on: ${{ matrix.os }}
22+
permissions:
23+
contents: read
24+
packages: write
2225
steps:
2326

2427
- name: Checkout
@@ -51,7 +54,7 @@ jobs:
5154
with:
5255
registry: ${{ env.REGISTRY }}
5356
username: ${{ github.actor }}
54-
password: ${{ secrets.PACKAGE_TOKEN }}
57+
password: ${{ secrets.GITHUB_TOKEN }}
5558

5659
- name: Build and push
5760
id: build
@@ -76,6 +79,9 @@ jobs:
7679
retention-days: 1
7780
merge:
7881
runs-on: ubuntu-latest
82+
permissions:
83+
contents: read
84+
packages: write
7985
needs:
8086
- build
8187
steps:
@@ -91,7 +97,7 @@ jobs:
9197
with:
9298
registry: ${{ env.REGISTRY }}
9399
username: ${{ github.actor }}
94-
password: ${{ secrets.PACKAGE_TOKEN }}
100+
password: ${{ secrets.GITHUB_TOKEN }}
95101

96102
- name: Set up Docker Buildx
97103
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)