Skip to content

Commit fe0692d

Browse files
committed
ci: enable egress block with stepsecurity
1 parent 0079ead commit fe0692d

7 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Harden Runner
2525
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
2626
with:
27-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
27+
egress-policy: block
2828

2929
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
- name: Use Node.js ${{ matrix.node-version }}

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Harden Runner
4444
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
4545
with:
46-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
46+
egress-policy: block
4747

4848
- name: Checkout repository
4949
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/nodejs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
- name: Harden Runner
2121
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
2222
with:
23-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
23+
egress-policy: block
24+
allowed-endpoints: >
25+
api.github.com:443
26+
github.com:443
27+
registry.npmjs.org:443
2428
2529
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2630
- name: Use Node.js ${{ matrix.node-version }}

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Harden Runner
3535
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
3636
with:
37-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
37+
egress-policy: block
3838

3939
- name: "Checkout code"
4040
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Harden Runner
2525
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
2626
with:
27-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
27+
egress-policy: block
2828

2929
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
- name: Use Node.js ${{ matrix.node-version }}

.github/workflows/size-satisfies.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
- name: Harden Runner
2525
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
2626
with:
27-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
27+
egress-policy: block
28+
2829

2930
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3031
- name: Use Node.js ${{ matrix.node-version }}
@@ -36,4 +37,4 @@ jobs:
3637
- name: Build
3738
run: npm run build:workspaces
3839
- name: Run tests
39-
run: npm run test
40+
run: npm run test -w workspaces/size-satisfies

.github/workflows/vis-network.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Harden Runner
2525
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
2626
with:
27-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
27+
egress-policy: block
2828

2929
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
- name: Use Node.js ${{ matrix.node-version }}
@@ -36,4 +36,4 @@ jobs:
3636
- name: Build
3737
run: npm run build:workspaces
3838
- name: Run tests
39-
run: npm run test
39+
run: npm run test -w workspaces/vis-network

0 commit comments

Comments
 (0)