Skip to content

Commit f6120f5

Browse files
[StepSecurity] ci: Harden GitHub Actions (#833)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 7c6e81f commit f6120f5

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.github/workflows/lf-build-linux-aarch64.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
steps:
3434
# Transform the space‐separated string into a valid JSON array using shell commands (with sed),
3535
# then pass that result as an output to be used in the matrix of a subsequent job.
36+
- name: Harden the runner (Audit all outbound calls)
37+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
38+
with:
39+
egress-policy: audit
40+
3641
- id: set-matrix
3742
run: |
3843
# Grab the space-separated input value
@@ -141,8 +146,13 @@ jobs:
141146
- 'ubuntu-24.04-arm'
142147

143148
steps:
149+
- name: Harden the runner (Audit all outbound calls)
150+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
151+
with:
152+
egress-policy: audit
153+
144154
- name: 'Download all artifacts'
145-
uses: 'actions/download-artifact@v4'
155+
uses: 'actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8'
146156
with:
147157
path: '/tmp/artifacts'
148158

.github/workflows/lf-build-linux-x86_64.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
steps:
3434
# Transform the space‐separated string into a valid JSON array using shell commands (with sed),
3535
# then pass that result as an output to be used in the matrix of a subsequent job.
36+
- name: Harden the runner (Audit all outbound calls)
37+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
38+
with:
39+
egress-policy: audit
40+
3641
- id: set-matrix
3742
run: |
3843
# Grab the space-separated input value
@@ -141,8 +146,13 @@ jobs:
141146
- 'ubuntu-24.04'
142147

143148
steps:
149+
- name: Harden the runner (Audit all outbound calls)
150+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
151+
with:
152+
egress-policy: audit
153+
144154
- name: 'Download all artifacts'
145-
uses: 'actions/download-artifact@v4'
155+
uses: 'actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8'
146156
with:
147157
path: '/tmp/artifacts'
148158

.github/workflows/lf-build-windows-x86_64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
name: "lfmp-${{ env.LFMP_VERSION }}-${{ env.LFMP_PACKAGE_ITERATION }}.unsigned-compiled.${{ env.LFMP_ARCH }}"
106106

107107
- name: 'Sign the compiled plugins'
108-
uses: 'signpath/[email protected]'
108+
uses: 'signpath/github-action-submit-signing-request@3c306158facd969ebdb385c6845dee38afc2ebf9 # v1.1'
109109
with:
110110
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
111111
organization-id: '35067665-5434-42c5-9fa2-4c750069f161'
@@ -154,7 +154,7 @@ jobs:
154154
name: "lfmp-${{ env.LFMP_VERSION }}-${{ env.LFMP_PACKAGE_ITERATION }}.unsigned-packaged.${{ env.LFMP_ARCH }}"
155155

156156
- name: 'Sign the package'
157-
uses: 'signpath/[email protected]'
157+
uses: 'signpath/github-action-submit-signing-request@3c306158facd969ebdb385c6845dee38afc2ebf9 # v1.1'
158158
with:
159159
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
160160
organization-id: '35067665-5434-42c5-9fa2-4c750069f161'

0 commit comments

Comments
 (0)