Skip to content

Commit 236be5c

Browse files
authored
chore: improve workflows security (#5856)
1 parent d0398ad commit 236be5c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/npm_release_cli.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@ on:
1010
env:
1111
NPM_TAG: 'next'
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
release:
1518
runs-on: macos-latest
1619

1720
steps:
21+
22+
- name: Harden the runner (Audit all outbound calls)
23+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
24+
with:
25+
egress-policy: audit
26+
1827
- uses: actions/checkout@v2
1928

2029
- uses: actions/setup-node@v3

.github/workflows/npm_release_doctor.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,20 @@ defaults:
1414
env:
1515
NPM_TAG: 'next'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
release:
1922
runs-on: ubuntu-latest
2023

2124
steps:
25+
26+
- name: Harden the runner (Audit all outbound calls)
27+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
28+
with:
29+
egress-policy: audit
30+
2231
- uses: actions/checkout@v2
2332

2433
- name: Setup

0 commit comments

Comments
 (0)