Skip to content

Commit d9acca8

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent 7e3ecc8 commit d9acca8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/greetings.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ jobs:
66
greeting:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/first-interaction@v1
9+
- name: Harden the runner (Audit all outbound calls)
10+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
11+
with:
12+
egress-policy: audit
13+
14+
- uses: actions/first-interaction@3c71ce730280171fd1cfb57c00c774f8998586f7 # v1
1015
with:
1116
repo-token: ${{ secrets.GITHUB_TOKEN }}
1217
issue-message: |

.github/workflows/on_pull_request.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ jobs:
66
reviewdog:
77
runs-on: ubuntu-latest
88
steps:
9+
- name: Harden the runner (Audit all outbound calls)
10+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
11+
with:
12+
egress-policy: audit
13+
914
- name: Install Requirements
1015
run: |
1116
mkdir -p $HOME/bin
@@ -14,7 +19,7 @@ jobs:
1419
python3 -m pip install setuptools
1520
python3 -m pip install pylint
1621
python3 -m pip install netapp-ontap
17-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
1823
- name: Run reviewdog
1924
env:
2025
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)