Skip to content

Commit ac24d2f

Browse files
fix: Add persist-credentials: false to checkout actions
1 parent 15aec0a commit ac24d2f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/Action-Test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
# Need to check out as part of the test, as its a local action
3131
- name: Checkout repo
3232
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33+
with:
34+
persist-credentials: false
3335

3436
- name: Action-Test [1-Simple]
3537
uses: ./
@@ -58,6 +60,8 @@ jobs:
5860
# Need to check out as part of the test, as its a local action
5961
- name: Checkout repo
6062
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
63+
with:
64+
persist-credentials: false
6165

6266
- name: Action-Test [1-Simple-File]
6367
uses: ./
@@ -86,6 +90,8 @@ jobs:
8690
# Need to check out as part of the test, as its a local action
8791
- name: Checkout repo
8892
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
93+
with:
94+
persist-credentials: false
8995

9096
- name: Action-Test [1-Simple-Failure]
9197
uses: ./
@@ -115,6 +121,8 @@ jobs:
115121
# Need to check out as part of the test, as its a local action
116122
- name: Checkout repo
117123
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
124+
with:
125+
persist-credentials: false
118126

119127
- name: Action-Test [1-Simple-Failure]
120128
uses: ./
@@ -144,6 +152,8 @@ jobs:
144152
# Need to check out as part of the test, as its a local action
145153
- name: Checkout repo
146154
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
155+
with:
156+
persist-credentials: false
147157

148158
- name: Action-Test [1-Simple-ExecutionFailure]
149159
uses: ./
@@ -171,6 +181,8 @@ jobs:
171181
# Need to check out as part of the test, as its a local action
172182
- name: Checkout repo
173183
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
184+
with:
185+
persist-credentials: false
174186

175187
- name: Action-Test [2-Standard]
176188
uses: ./
@@ -201,6 +213,8 @@ jobs:
201213
# Need to check out as part of the test, as its a local action
202214
- name: Checkout repo
203215
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
216+
with:
217+
persist-credentials: false
204218

205219
- name: Action-Test [2-Standard-NoSummary]
206220
uses: ./
@@ -229,6 +243,8 @@ jobs:
229243
# Need to check out as part of the test, as its a local action
230244
- name: Checkout repo
231245
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
246+
with:
247+
persist-credentials: false
232248

233249
- name: Action-Test [3-Advanced]
234250
uses: ./

.github/workflows/Linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323
with:
2424
fetch-depth: 0
25+
persist-credentials: false
2526

2627
- name: Lint code base
2728
uses: super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2
2829
env:
2930
GITHUB_TOKEN: ${{ github.token }}
31+
VALIDATE_BIOME_FORMAT: false
3032
VALIDATE_JSON_PRETTIER: false
3133
VALIDATE_MARKDOWN_PRETTIER: false
3234
VALIDATE_YAML_PRETTIER: false

0 commit comments

Comments
 (0)