Skip to content

Commit 2aa7682

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 688545a commit 2aa7682

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/openrpc-updater.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@ on:
99
- 'docs/openrpc.json'
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
clone-and-build-execution-apis:
1417
runs-on: ubuntu-latest
1518

1619
steps:
20+
- name: Harden the runner (Audit all outbound calls)
21+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
22+
with:
23+
egress-policy: audit
24+
1725
- name: Checkout execution-apis repo
1826
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1927
with:
@@ -44,14 +52,19 @@ jobs:
4452
runs-on: ubuntu-latest
4553
needs: clone-and-build-execution-apis
4654
steps:
55+
- name: Harden the runner (Audit all outbound calls)
56+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
57+
with:
58+
egress-policy: audit
59+
4760
- name: Checkout repository
4861
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4962
with:
5063
ref: 'main'
5164
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
5265

5366
- name: Download openrpc.json artifact
54-
uses: actions/download-artifact@v4
67+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
5568
with:
5669
name: openrpc
5770
path: ./downloaded-artifacts/

0 commit comments

Comments
 (0)