Skip to content

Commit e5eb148

Browse files
committed
ci(changelog): disable checkout credential persistence
The changelog-entry-required job is read-only (git show/diff over already-fetched history, no push), so it does not need the GITHUB_TOKEN left in .git/config on the runner. Addresses CodeRabbit/zizmor artipacked. Leaving actions/checkout pinned to @v4 to match the repo-wide convention (all 28 checkout uses pin by tag, none by SHA); SHA-pinning belongs in a dedicated repo-wide hardening pass, not this single-workflow PR.
1 parent cf41099 commit e5eb148

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/changelog-entry-required.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
31+
# Read-only job (git show/diff on already-fetched history, no push);
32+
# do not leave the token in .git/config on the runner.
33+
persist-credentials: false
3134

3235
- name: Require a CHANGELOG entry for shipped-code changes
3336
env:

0 commit comments

Comments
 (0)