Skip to content

Commit 255090d

Browse files
authored
Update to latest versions and use harden action (#106)
1 parent f120926 commit 255090d

4 files changed

Lines changed: 31 additions & 5 deletions

File tree

.github/workflows/docker.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
13+
- name: Harden Runner
14+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
15+
with:
16+
egress-policy: block
17+
allowed-endpoints: >
18+
archive.ubuntu.com:80
19+
auth.docker.io:443
20+
github.com:443
21+
production.cloudflare.docker.com:443
22+
registry-1.docker.io:443
23+
registry.npmjs.org:443
24+
security.ubuntu.com:80
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1426
- name: Build the container
1527
run: docker build -f test/Dockerfile . -t sitespeedio/throttle
1628
- name: Test Throttle

.github/workflows/install.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
matrix:
1414
node-version: [24.x]
1515
steps:
16+
- name: Harden Runner
17+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
18+
with:
19+
egress-policy: block
20+
allowed-endpoints: >
21+
registry.npmjs.org:443
1622
- name: Install throttle
1723
run: npm install @sitespeed.io/throttle -g
1824
- name: Install dependencies

.github/workflows/linux.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ jobs:
1313
matrix:
1414
node-version: [20.x, 22.x, 24.x]
1515
steps:
16-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
16+
- name: Harden Runner
17+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
18+
with:
19+
egress-policy: audit
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1721
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
22+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1923
with:
2024
node-version: ${{ matrix.node-version }}
2125
- name: Install throttle

.github/workflows/osx.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ jobs:
1010
build:
1111
runs-on: macos-latest
1212
steps:
13-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
13+
- name: Harden Runner
14+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
15+
with:
16+
egress-policy: audit
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1418
- name: Use Node.js
15-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
19+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1620
with:
1721
node-version: '20.x'
1822
- name: Install dependencies

0 commit comments

Comments
 (0)