Skip to content

Commit

Permalink
Update Harden Runner step in node workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Dec 7, 2021
1 parent be75d5e commit cecf848
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/node-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ jobs:
packages: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@main
uses: step-security/harden-runner@v1
with:
allowed-endpoints:
github.com:443
npm.pkg.github.com:443
registry.npmjs.org:443

- name: Checkout release
if: github.event_name != 'workflow_dispatch'
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/node-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ jobs:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Harden Runner
if: runner.os == 'Linux'
uses: step-security/harden-runner@main
uses: step-security/harden-runner@v1
with:
allowed-endpoints:
beta.api.stepsecurity.io.:443
codecov.io.:443
github.com.:443
nodejs.org.:443
Expand Down

0 comments on commit cecf848

Please sign in to comment.