Skip to content

Commit fb41089

Browse files
authored
Merge pull request #190 from nrkno/ci/github-actions-checkout
ci: set persist-credentials to false for checkout action
2 parents 890b8c2 + 01889d9 commit fb41089

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.github/workflows/build-windows.yaml

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

1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123

2224
- name: Use Node.js
2325
uses: actions/setup-node@v4

.github/workflows/lint-and-test.yaml

Lines changed: 4 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

2224
- name: Use Node.js
2325
uses: actions/setup-node@v4
@@ -60,6 +62,8 @@ jobs:
6062
steps:
6163
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
6264
- uses: actions/checkout@v4
65+
with:
66+
persist-credentials: false
6367

6468
- name: Use Node.js ${{ matrix.node_version }}
6569
uses: actions/setup-node@v4

.github/workflows/publish-prerelease-docker.yaml

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

1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1719

1820
- name: Determine if images should be published to DockerHub
1921
id: dockerhub

.github/workflows/publish-prerelease.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1919
- uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
2022
- name: Use Node.js ${{ matrix.node_version }}
2123
uses: actions/setup-node@v4
2224
with:
@@ -46,6 +48,7 @@ jobs:
4648
- uses: actions/checkout@v4
4749
with:
4850
fetch-depth: 0
51+
persist-credentials: false
4952
- name: Use Node.js
5053
uses: actions/setup-node@v4
5154
with:

0 commit comments

Comments
 (0)