Skip to content

Commit d9e527c

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

2 files changed

Lines changed: 34 additions & 9 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v6
10-
- uses: actions/setup-node@v6
9+
- name: Harden the runner (Audit all outbound calls)
10+
uses: step-security/harden-runner@v2
11+
with:
12+
egress-policy: audit
13+
14+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
15+
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
1116
with:
1217
node-version-file: 'package.json'
1318
cache: 'npm'
@@ -24,7 +29,12 @@ jobs:
2429
version: ["", 1295939, 120, dev, latest]
2530
runs-on: ${{ matrix.os }}
2631
steps:
27-
- uses: actions/checkout@v6
32+
- name: Harden the runner (Audit all outbound calls)
33+
uses: step-security/harden-runner@v2
34+
with:
35+
egress-policy: audit
36+
37+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
2838

2939
- name: Install Google Chrome
3040
uses: ./
@@ -46,7 +56,12 @@ jobs:
4656
if: github.actor != 'dependabot[bot]'
4757
runs-on: windows-11-arm
4858
steps:
49-
- uses: actions/checkout@v6
59+
- name: Harden the runner (Audit all outbound calls)
60+
uses: step-security/harden-runner@v2
61+
with:
62+
egress-policy: audit
63+
64+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
5065

5166
- name: Install Google Chrome
5267
uses: ./
@@ -62,7 +77,12 @@ jobs:
6277
needs: [build]
6378
runs-on: ubuntu-24.04-arm
6479
steps:
65-
- uses: actions/checkout@v6
80+
- name: Harden the runner (Audit all outbound calls)
81+
uses: step-security/harden-runner@v2
82+
with:
83+
egress-policy: audit
84+
85+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
6686

6787
- name: Install Google Chrome
6888
uses: ./
@@ -89,7 +109,7 @@ jobs:
89109
- name: Install tar and git (opensuse/leap)
90110
run: zypper install --no-confirm tar git
91111
if: ${{ matrix.container == 'opensuse/leap' }}
92-
- uses: actions/checkout@v6
112+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
93113
- name: Install action dependencies
94114
run: apt-get update && apt-get install -y unzip
95115
if: ${{ matrix.container == 'debian' || matrix.container == 'ubuntu' || matrix.container == 'linuxmintd/mint21-amd64' }}

‎.github/workflows/manual-test.yml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ jobs:
2424
build:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v6
28-
- uses: actions/setup-node@v6
27+
- name: Harden the runner (Audit all outbound calls)
28+
uses: step-security/harden-runner@v2
29+
with:
30+
egress-policy: audit
31+
32+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
33+
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
2934
with:
3035
node-version-file: 'package.json'
3136
cache: 'npm'
@@ -39,7 +44,7 @@ jobs:
3944
runs-on: ${{ inputs.os }}
4045
container: ${{ inputs.container }}
4146
steps:
42-
- uses: actions/checkout@v6
47+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
4348
- name: Install chrome
4449
uses: ./
4550
with:

0 commit comments

Comments
 (0)