Skip to content

Commit 779357c

Browse files
suzuki-shunsukeingydotnet
authored andcommitted
Disable actions/checkout's persist-credentials
1 parent 76def9f commit 779357c

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.github/workflows/check-commit-message.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v5
1818
with:
1919
fetch-depth: 0 # Fetch all history to ensure all SHAs are available
20+
persist-credentials: false
2021
- name: Check PR Commits
2122
run:
2223
util/check-commit-messages.sh

.github/workflows/codeql.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
steps:
2929
- name: Checkout repository
3030
uses: actions/checkout@v5
31+
with:
32+
persist-credentials: false
3133

3234
# Initializes the CodeQL tools for scanning.
3335
- name: Initialize CodeQL

.github/workflows/files.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: checkout-action
1616
uses: actions/checkout@v5
17+
with:
18+
persist-credentials: false
1719

1820
- name: actionlint
1921
uses: raven-actions/[email protected]
@@ -23,6 +25,8 @@ jobs:
2325
steps:
2426
- name: checkout-action
2527
uses: actions/checkout@v5
28+
with:
29+
persist-credentials: false
2630

2731
- name: yamllint
2832
uses: ibiqlik/action-yamllint@v3
@@ -32,6 +36,8 @@ jobs:
3236
steps:
3337
- name: checkout-action
3438
uses: actions/checkout@v5
39+
with:
40+
persist-credentials: false
3541

3642
- name: ls-lint
3743
uses: ls-lint/action@v2
@@ -43,6 +49,8 @@ jobs:
4349
steps:
4450
- name: checkout-action
4551
uses: actions/checkout@v5
52+
with:
53+
persist-credentials: false
4654

4755
- name: typos-action
4856
uses: crate-ci/typos@v1

.github/workflows/go.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v5
14+
with:
15+
persist-credentials: false
1416
- name: Set up Go
1517
uses: actions/setup-go@v6
1618
with:
@@ -36,6 +38,8 @@ jobs:
3638
go-versions: ${{ fromJSON(needs.go-versions.outputs.matrix) }}
3739
steps:
3840
- uses: actions/checkout@v5
41+
with:
42+
persist-credentials: false
3943
- name: Set up Go
4044
uses: actions/setup-go@v6
4145
with:

0 commit comments

Comments
 (0)