Skip to content

Commit e31fa05

Browse files
committed
ci: harden change detection checkout
Set persist-credentials: false on the checkout steps used by the lightweight change-detection jobs. Those jobs only need read-only git history for diff and commit checks, so keeping the token out of the workspace reduces credential exposure while preserving the docs-only gating behavior.
1 parent d021b17 commit e31fa05

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/ccusage-perf.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323
with:
2424
fetch-depth: 0
25+
persist-credentials: false
2526
- id: detect
2627
uses: ./.github/actions/detect-code-changes
2728

‎.github/workflows/ccusage-rust-perf.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323
with:
2424
fetch-depth: 0
25+
persist-credentials: false
2526
- id: detect
2627
uses: ./.github/actions/detect-code-changes
2728

‎.github/workflows/ci.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515
with:
1616
fetch-depth: 0
17+
persist-credentials: false
1718
- id: detect
1819
uses: ./.github/actions/detect-code-changes
1920

0 commit comments

Comments
 (0)