Skip to content

Commit 8a69ce6

Browse files
ci: set persist-credentials to false for checkout action
1 parent 038ab0b commit 8a69ce6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/build-windows.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
timeout-minutes: 20
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
2124

2225
- name: Use Node.js
2326
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
- name: Use Node.js
2224
uses: actions/setup-node@v4
2325
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:

0 commit comments

Comments
 (0)