Skip to content

Commit ab57b58

Browse files
committed
[CI] Set persist-credentials: false for actions/checkout steps
1 parent e47d7bc commit ab57b58

File tree

10 files changed

+16
-2
lines changed

10 files changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
runs-on: ubuntu-22.04
3232
steps:
3333
- uses: actions/checkout@v5
34+
with:
35+
persist-credentials: false
3436

3537
- name: Set up JDK 17
3638
uses: actions/setup-java@v5

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ jobs:
219219
- uses: actions/checkout@v5
220220
with:
221221
fetch-depth: 0
222+
persist-credentials: false
222223

223224
- name: Set up JDK 17
224225
uses: actions/setup-java@v5

.github/workflows/codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- uses: actions/checkout@v5
3636
with:
3737
fetch-depth: 0
38+
persist-credentials: false
3839

3940
- name: Set up JDK 17
4041
uses: actions/setup-java@v5

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
steps:
3737
- name: Checkout repository
3838
uses: actions/checkout@v5
39+
with:
40+
persist-credentials: false
3941
- name: Initialize CodeQL
4042
uses: github/codeql-action/init@v3
4143
with:

.github/workflows/docker-cloudstack-simulator.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
run: echo "DOCKER_REPOSITORY=apache" >> $GITHUB_ENV
4949

5050
- uses: actions/checkout@v5
51+
with:
52+
persist-credentials: false
5153

5254
- name: Set ACS version
5355
run: echo "ACS_VERSION=$(grep '<version>' pom.xml | head -2 | tail -1 | cut -d'>' -f2 |cut -d'<' -f1)" >> $GITHUB_ENV

.github/workflows/main-sonar-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v5
3636
with:
3737
fetch-depth: 0
38-
38+
persist-credentials: false
3939
- name: Set up JDK17
4040
uses: actions/setup-java@v5
4141
with:

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
steps:
3434
- name: Check Out
3535
uses: actions/checkout@v5
36+
with:
37+
persist-credentials: false
3638
- name: Install
3739
run: |
3840
python -m pip install --upgrade pip

.github/workflows/rat.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
runs-on: ubuntu-22.04
3232
steps:
3333
- uses: actions/checkout@v5
34+
with:
35+
persist-credentials: false
3436
- name: Set up JDK 17
3537
uses: actions/setup-java@v5
3638
with:

.github/workflows/sonar-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
ref: "refs/pull/${{ github.event.number }}/merge"
3939
fetch-depth: 0
40-
40+
persist-credentials: false
4141
- name: Set up JDK17
4242
uses: actions/setup-java@v5
4343
with:

.github/workflows/ui.yml

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

3333
steps:
3434
- uses: actions/checkout@v5
35+
with:
36+
persist-credentials: false
3537

3638
- name: Set up Node
3739
uses: actions/setup-node@v5

0 commit comments

Comments
 (0)