Skip to content

Commit 7250042

Browse files
committed
GHA: Use step-security/harden-runner
1 parent e1ff974 commit 7250042

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/workflows/cd-wheel.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
outputs:
7373
matrix: ${{ steps.setup.outputs.matrix }}
7474
steps:
75+
- uses: step-security/harden-runner@v2
7576
- id: setup
7677
shell: python
7778
name: 'setup build matrix'
@@ -107,6 +108,10 @@ jobs:
107108

108109
steps:
109110

111+
- uses: step-security/harden-runner@v2
112+
with:
113+
egress-policy: audit
114+
110115
- id: checkout
111116
uses: actions/checkout@v4
112117

.github/workflows/cd.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ jobs:
7777

7878
steps:
7979

80+
- uses: step-security/harden-runner@v2
81+
with:
82+
egress-policy: audit
83+
8084
- name: Download wheel artifacts
8185
uses: actions/download-artifact@v4
8286
with:
@@ -113,6 +117,10 @@ jobs:
113117

114118
steps:
115119

120+
- uses: step-security/harden-runner@v2
121+
with:
122+
egress-policy: audit
123+
116124
- name: Download wheel artifacts
117125
uses: actions/download-artifact@v4
118126
with:
@@ -143,6 +151,10 @@ jobs:
143151

144152
steps:
145153

154+
- uses: step-security/harden-runner@v2
155+
with:
156+
egress-policy: audit
157+
146158
- name: Download wheel artifacts
147159
uses: actions/download-artifact@v4
148160
with:

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ jobs:
103103
- openmpi-50
104104
- openmpi-41
105105
steps:
106+
- uses: step-security/harden-runner@v2
107+
with:
108+
egress-policy: audit
106109
- uses: actions/download-artifact@v4
107110
with:
108111
path: wheelhouse

0 commit comments

Comments
 (0)