Skip to content

Commit ee03bef

Browse files
authored
chore(action): add harden runner and pin actions (#291)
1 parent 0d92c79 commit ee03bef

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/playwright.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ jobs:
1515
timeout-minutes: 10
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
19-
- uses: actions/setup-node@v4
18+
- name: Harden Runner
19+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
20+
with:
21+
egress-policy: audit
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2024
with:
2125
node-version: lts/*
2226
- name: Install dependencies
@@ -25,7 +29,7 @@ jobs:
2529
run: npx playwright install --with-deps
2630
- name: Run Playwright tests
2731
run: npx playwright test
28-
- uses: actions/upload-artifact@v4
32+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2933
if: ${{ !cancelled() }}
3034
with:
3135
name: playwright-report

0 commit comments

Comments
 (0)