Skip to content

Commit d0e0ead

Browse files
committed
ci: 更新Docker发布工作流中的认证令牌
将工作流中的认证令牌从`GITHUB_TOKEN`更改为`TOKEN`,以提高安全性和灵活性
1 parent 6ffaf10 commit d0e0ead

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
registry: ghcr.io
2727
username: ${{ github.actor }}
28-
password: ${{ secrets.GITHUB_TOKEN }}
28+
password: ${{ secrets.TOKEN }}
2929

3030
- name: 提取元数据
3131
id: meta
@@ -75,4 +75,4 @@ jobs:
7575
uses: softprops/action-gh-release@v1
7676
with:
7777
files: docker-compose.release.yml
78-
token: ${{ secrets.GITHUB_TOKEN }}
78+
token: ${{ secrets.TOKEN }}

0 commit comments

Comments
 (0)