File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments