@@ -25,10 +25,15 @@ jobs:
2525 frontend : ${{ steps.filter.outputs.frontend }}
2626 any : ${{ steps.filter.outputs.any }}
2727 steps :
28- - uses : actions/checkout@v4
28+ - name : Harden the runner (Audit all outbound calls)
29+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
30+ with :
31+ egress-policy : audit
32+
33+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2934 - name : Filter
3035 id : filter
31- uses : dorny/paths-filter@v3
36+ uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3237 with :
3338 filters : |
3439 node:
5055 if : needs.changes.outputs.node == 'true' || needs.changes.outputs.any == 'true'
5156 runs-on : ubuntu-latest
5257 steps :
53- - uses : actions/checkout@v4
54- - uses : actions/setup-node@v4
58+ - name : Harden the runner (Audit all outbound calls)
59+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
60+ with :
61+ egress-policy : audit
62+
63+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
64+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
5565 with :
5666 node-version : ' 22'
5767 cache : npm
7181 if : needs.changes.outputs.frontend == 'true' || needs.changes.outputs.any == 'true'
7282 runs-on : ubuntu-latest
7383 steps :
74- - uses : actions/checkout@v4
75- - uses : actions/setup-node@v4
84+ - name : Harden the runner (Audit all outbound calls)
85+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
86+ with :
87+ egress-policy : audit
88+
89+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
90+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
7691 with :
7792 node-version : ' 20'
7893 cache : npm
@@ -90,8 +105,13 @@ jobs:
90105 if : needs.changes.outputs.python == 'true' || needs.changes.outputs.any == 'true'
91106 runs-on : ubuntu-latest
92107 steps :
93- - uses : actions/checkout@v4
94- - uses : actions/setup-python@v5
108+ - name : Harden the runner (Audit all outbound calls)
109+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
110+ with :
111+ egress-policy : audit
112+
113+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
114+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
95115 with :
96116 python-version : ' 3.12'
97117 cache : ' pip'
@@ -117,7 +137,12 @@ jobs:
117137 if : needs.changes.outputs.go == 'true' || needs.changes.outputs.any == 'true'
118138 runs-on : ubuntu-latest
119139 steps :
120- - uses : actions/checkout@v4
140+ - name : Harden the runner (Audit all outbound calls)
141+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
142+ with :
143+ egress-policy : audit
144+
145+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
121146 - name : Build
122147 working-directory : templates/go
123148 run : go build -o service main.go
@@ -136,9 +161,14 @@ jobs:
136161 if : needs.changes.outputs.java == 'true' || needs.changes.outputs.any == 'true'
137162 runs-on : ubuntu-latest
138163 steps :
139- - uses : actions/checkout@v4
164+ - name : Harden the runner (Audit all outbound calls)
165+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
166+ with :
167+ egress-policy : audit
168+
169+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
140170 - name : Set up Temurin JDK
141- uses : actions/setup-java@v4
171+ uses : actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
142172 with :
143173 distribution : ' temurin'
144174 java-version : ' 21'
@@ -153,6 +183,11 @@ jobs:
153183 if : always()
154184 runs-on : ubuntu-latest
155185 steps :
186+ - name : Harden the runner (Audit all outbound calls)
187+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
188+ with :
189+ egress-policy : audit
190+
156191 - name : Report matrix
157192 run : |
158193 echo "Node: ${{ needs.node.result }}"
0 commit comments