fix(ci): keep the checkout token out of the published image

actions/checkout@v5 stored the job's GitHub token in .git/config, and
the image copies .git, so published images contained it. Use checkout
v7 with persist-credentials: false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-11-04 03:53:06 +01:00
1 parent 1ad4e756cd
commit 0e6718d751
1 file changed
+3 -1
+3 -1
View File
@@ -32,7 +32,9 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: docker/login-action@v3
with: