Skip to content

Commit 93873c3

Browse files
committed
Make Github actions more secure
1 parent 119d6a0 commit 93873c3

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
18+
persist-credentials: false
1819
ref: ${{ github.event.inputs.branch }}
1920
- uses: actions/setup-node@v4
2021
with:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v4
3232
with:
33+
persist-credentials: false
3334
ref: main
3435
- uses: actions/setup-node@v4
3536
with:

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
src-only: "${{ steps.changes.outputs.src-only }}"
1212
steps:
1313
- uses: actions/checkout@v4
14+
with:
15+
persist-credentials: false
1416
- uses: dorny/paths-filter/@v3.0.2
1517
id: changes
1618
with:
@@ -33,6 +35,8 @@ jobs:
3335

3436
steps:
3537
- uses: actions/checkout@v4
38+
with:
39+
persist-credentials: false
3640

3741
- name: Use Node.js ${{ matrix.node-version }}
3842
uses: actions/setup-node@v4
@@ -57,6 +61,8 @@ jobs:
5761

5862
steps:
5963
- uses: actions/checkout@v4
64+
with:
65+
persist-credentials: false
6066

6167
- name: Set up Node.js
6268
uses: actions/setup-node@v4
@@ -85,6 +91,8 @@ jobs:
8591

8692
steps:
8793
- uses: actions/checkout@v4
94+
with:
95+
persist-credentials: false
8896

8997
- name: Use Bun
9098
uses: oven-sh/setup-bun@v2

0 commit comments

Comments
 (0)