Skip to content

Commit 055c24c

Browse files
authored
chore: align checkout steps with standard practices (#518)
## Description This PR updates several GitHub workflow files to align the `actions/checkout` step with standard repository practices by setting `persist-credentials: false`. ## Changes - Updated `.github/workflows/evals-nightly.yml` - Updated `.github/workflows/gemini-invoke.yml` - Updated `.github/workflows/gemini-issue-fixer.yml` - Updated `.github/workflows/gemini-plan-execute.yml` - Updated `.github/workflows/gemini-review.yml` - Updated `.github/workflows/publish.yml`
1 parent c28f3c6 commit 055c24c

6 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/evals-nightly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: 'Checkout code'
2323
uses: 'actions/checkout@v4' # ratchet:exclude
24+
with:
25+
persist-credentials: false
2426
- id: 'set-matrix'
2527
run: |
2628
FILES=$(find evals -maxdepth 1 -name "*.eval.ts" | sort | jq -R -s -c 'split("\n")[:-1]')
@@ -39,6 +41,8 @@ jobs:
3941
steps:
4042
- name: 'Checkout code'
4143
uses: 'actions/checkout@v4' # ratchet:exclude
44+
with:
45+
persist-credentials: false
4246

4347
- name: 'Set up Node.js'
4448
uses: 'actions/setup-node@v4' # ratchet:exclude
@@ -90,6 +94,8 @@ jobs:
9094
steps:
9195
- name: 'Checkout code'
9296
uses: 'actions/checkout@v4' # ratchet:exclude
97+
with:
98+
persist-credentials: false
9399

94100
- name: 'Set up Node.js'
95101
uses: 'actions/setup-node@v4' # ratchet:exclude

.github/workflows/gemini-invoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: 'Checkout Code'
4141
uses: 'actions/checkout@v4' # ratchet:exclude
4242
with:
43-
persist-credentials: 'false'
43+
persist-credentials: false
4444

4545
- name: 'Prepare prompt context'
4646
shell: 'bash'

.github/workflows/gemini-issue-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: 'Checkout repository'
3939
uses: 'actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8' # ratchet:actions/checkout@v6
4040
with:
41-
persist-credentials: 'false'
41+
persist-credentials: false
4242

4343
- name: 'Prepare prompt context'
4444
shell: 'bash'

.github/workflows/gemini-plan-execute.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: 'Checkout Code'
4343
uses: 'actions/checkout@v4' # ratchet:exclude
4444
with:
45-
persist-credentials: 'false'
45+
persist-credentials: false
4646

4747
- name: 'Prepare prompt context'
4848
shell: 'bash'

.github/workflows/gemini-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: 'Checkout repository'
4242
uses: 'actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8' # ratchet:actions/checkout@v6
4343
with:
44-
persist-credentials: 'false'
44+
persist-credentials: false
4545

4646
- name: 'Prepare prompt context'
4747
shell: 'bash'

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: 'Checkout'
1919
uses: 'actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8' # ratchet:actions/checkout@v6
20+
with:
21+
persist-credentials: false
2022

2123
- name: 'Publish'
2224
id: 'publish'

0 commit comments

Comments
 (0)