Add action to harden runner in node workflow
This commit is contained in:
parent
beaceb0089
commit
f7b503e36b
1 changed files with 4 additions and 0 deletions
4
.github/workflows/node-workflow.yml
vendored
4
.github/workflows/node-workflow.yml
vendored
|
|
@ -25,6 +25,10 @@ jobs:
|
|||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
if: runner.os == 'Linux'
|
||||
uses: step-security/harden-runner@main
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue