Skip to content

Commit 068d360

Browse files
feat: update workflows to disable credential persistence and set fetch depth for checkout steps
1 parent 2c81030 commit 068d360

File tree

8 files changed

+26
-0
lines changed

8 files changed

+26
-0
lines changed

.github/workflows/Build-Docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- name: Checkout Code
4545
uses: actions/checkout@v5
4646
with:
47+
persist-credentials: false
4748
fetch-depth: 0
4849

4950
- name: Download module artifact

.github/workflows/Build-Module.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
steps:
3131
- name: Checkout Code
3232
uses: actions/checkout@v5
33+
with:
34+
persist-credentials: false
35+
fetch-depth: 0
3336

3437
- name: Build module
3538
uses: PSModule/Build-PSModule@v4

.github/workflows/Build-Site.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- name: Checkout Code
4545
uses: actions/checkout@v5
4646
with:
47+
persist-credentials: false
4748
fetch-depth: 0
4849

4950
- name: Install-PSModuleHelpers

.github/workflows/Get-Settings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
steps:
6767
- name: Checkout Code
6868
uses: actions/checkout@v5
69+
with:
70+
persist-credentials: false
71+
fetch-depth: 0
6972

7073
- name: Get-Settings
7174
uses: PSModule/GitHub-Script@v1

.github/workflows/Test-Module.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ jobs:
8282
steps:
8383
- name: Checkout repository
8484
uses: actions/checkout@v5
85+
with:
86+
persist-credentials: false
87+
fetch-depth: 0
8588

8689
- name: Download module artifact
8790
uses: actions/download-artifact@v5

.github/workflows/Test-ModuleLocal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ jobs:
9393
steps:
9494
- name: Checkout Code
9595
uses: actions/checkout@v5
96+
with:
97+
persist-credentials: false
98+
fetch-depth: 0
9699

97100
- name: Download module artifact
98101
uses: actions/download-artifact@v5

.github/workflows/Test-SourceCode.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
steps:
5252
- name: Checkout Code
5353
uses: actions/checkout@v5
54+
with:
55+
persist-credentials: false
56+
fetch-depth: 0
5457

5558
- name: Test-SourceCode
5659
uses: PSModule/Test-PSModule@v3

.github/workflows/workflow.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ jobs:
257257
steps:
258258
- name: Checkout Code
259259
uses: actions/checkout@v5
260+
with:
261+
persist-credentials: false
262+
fetch-depth: 0
260263

261264
- name: Run BeforeAll Setup Scripts
262265
uses: PSModule/GitHub-Script@v1
@@ -331,6 +334,9 @@ jobs:
331334
steps:
332335
- name: Checkout Code
333336
uses: actions/checkout@v5
337+
with:
338+
persist-credentials: false
339+
fetch-depth: 0
334340

335341
- name: Install-PSModuleHelpers
336342
uses: PSModule/Install-PSModuleHelpers@v1
@@ -457,6 +463,9 @@ jobs:
457463
steps:
458464
- name: Checkout Code
459465
uses: actions/checkout@v5
466+
with:
467+
persist-credentials: false
468+
fetch-depth: 0
460469

461470
- name: Download module artifact
462471
uses: actions/download-artifact@v5

0 commit comments

Comments
 (0)