Skip to content

Commit 7f1d88a

Browse files
ci: set persist-credentials to false for checkout action
1 parent ffb8bf6 commit 7f1d88a

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.github/workflows/audit.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
1921
- name: Use Node.js 16
2022
uses: actions/setup-node@v4
2123
with:
@@ -38,6 +40,8 @@ jobs:
3840

3941
steps:
4042
- uses: actions/checkout@v4
43+
with:
44+
persist-credentials: false
4145
- name: Use Node.js 16
4246
uses: actions/setup-node@v4
4347
with:

.github/workflows/node.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1818
- uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
1921
- name: Use Node.js
2022
uses: actions/setup-node@v4
2123
with:
@@ -53,6 +55,8 @@ jobs:
5355
steps:
5456
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
5557
- uses: actions/checkout@v4
58+
with:
59+
persist-credentials: false
5660
- name: Use Node.js ${{ matrix.node_version }}
5761
uses: actions/setup-node@v4
5862
with:
@@ -87,6 +91,8 @@ jobs:
8791

8892
steps:
8993
- uses: actions/checkout@v4
94+
with:
95+
persist-credentials: false
9096
- name: Use Node.js 16
9197
uses: actions/setup-node@v4
9298
with:
@@ -118,6 +124,7 @@ jobs:
118124
- uses: actions/checkout@v4
119125
with:
120126
fetch-depth: 0
127+
persist-credentials: false
121128
- name: Use Node.js 16
122129
uses: actions/setup-node@v4
123130
with:

.github/workflows/publish-prerelease.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
steps:
1919
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2020
- uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123
- name: Use Node.js ${{ matrix.node_version }}
2224
uses: actions/setup-node@v4
2325
with:
@@ -52,6 +54,7 @@ jobs:
5254
- uses: actions/checkout@v4
5355
with:
5456
fetch-depth: 0
57+
persist-credentials: false
5558
- name: Use Node.js 16
5659
uses: actions/setup-node@v4
5760
with:

.github/workflows/sonar.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
with:
1919
# Disabling shallow clone is recommended for improving relevancy of reporting
2020
fetch-depth: 0
21+
persist-credentials: false
2122

2223
- name: Use Node.js
2324
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)