Skip to content

Commit 0088297

Browse files
authored
GHA: Explicitly set git credential persistence (true by default) (SteeltoeOSS#1579)
1 parent 5aab342 commit 0088297

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

.github/workflows/Steeltoe.All.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979

8080
- name: Git checkout
8181
uses: actions/checkout@v4
82+
with:
83+
persist-credentials: false
8284

8385
- name: Restore packages
8486
run: dotnet restore ${{ env.SOLUTION_FILE }} /p:Configuration=Release --verbosity minimal

.github/workflows/component-shared-workflow.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676

7777
- name: Git checkout
7878
uses: actions/checkout@v4
79+
with:
80+
persist-credentials: false
7981

8082
- name: Restore packages
8183
run: dotnet restore ${{ env.SOLUTION_FILE }} /p:Configuration=Release --verbosity minimal

.github/workflows/package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
4141
- name: Git checkout
4242
uses: actions/checkout@v4
43+
with:
44+
persist-credentials: false
4345

4446
- name: Restore packages
4547
run: dotnet restore ${{ env.SOLUTION_FILE }} /p:Configuration=Release --verbosity minimal
@@ -261,6 +263,8 @@ jobs:
261263
steps:
262264
- name: Git checkout
263265
uses: actions/checkout@v4
266+
with:
267+
persist-credentials: true
264268

265269
- name: Calculate next package version
266270
shell: pwsh

.github/workflows/scan-vulnerable-dependencies.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
3737
- name: Git checkout
3838
uses: actions/checkout@v4
39+
with:
40+
persist-credentials: false
3941

4042
- name: Report vulnerable dependencies
4143
run: dotnet restore ${{ env.SOLUTION_FILE }} --verbosity minimal /p:NuGetAudit=true /p:NuGetAuditMode=all /p:NuGetAuditLevel=low /p:TreatWarningsAsErrors=True

.github/workflows/sonarcube.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
- name: Git checkout
6161
uses: actions/checkout@v4
6262
with:
63+
persist-credentials: false
6364
# Sonar: Shallow clones should be disabled for a better relevancy of analysis.
6465
fetch-depth: 0
6566

.github/workflows/verify-code-style.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- name: Git checkout
3737
uses: actions/checkout@v4
3838
with:
39+
persist-credentials: false
3940
fetch-depth: 2
4041

4142
- name: Restore tools

0 commit comments

Comments
 (0)