Skip to content

Commit 85a92d2

Browse files
chore: [StepSecurity] Apply security best practices (#295)
Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent 898eea0 commit 85a92d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
outputs:
2121
npm-artifact-name: ${{ steps.set-publish-data.outputs.artifact-name }}
2222
steps:
23+
- name: Harden the runner (Audit all outbound calls)
24+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
25+
with:
26+
egress-policy: audit
27+
2328
- name: Prepare Runner
2429
uses: pandaswhocode/initialize-github-job@ed4a98646fe0235e6ecf3af5414b355d2abe3bf3 # v1.0.3
2530
with:
@@ -71,6 +76,11 @@ jobs:
7176
needs:
7277
- build-npm-package
7378
steps:
79+
- name: Harden the runner (Audit all outbound calls)
80+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
81+
with:
82+
egress-policy: audit
83+
7484
- name: Prepare Runner
7585
uses: pandaswhocode/initialize-github-job@ed4a98646fe0235e6ecf3af5414b355d2abe3bf3 # v1.0.3
7686
with:

0 commit comments

Comments
 (0)