Skip to content

Commit 7801cd9

Browse files
[StepSecurity] ci: Harden GitHub Actions (#3379)
Signed-off-by: StepSecurity Bot <[email protected]> Co-authored-by: Lalit Kumar Bhasin <[email protected]>
1 parent 7bf1149 commit 7801cd9

11 files changed

+325
-0
lines changed

.github/workflows/benchmark.yml

+10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
name: Run OpenTelemetry-cpp benchmarks
1414
runs-on: ubuntu-latest
1515
steps:
16+
- name: Harden the runner (Audit all outbound calls)
17+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
18+
with:
19+
egress-policy: audit
20+
1621
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1722
with:
1823
submodules: 'recursive'
@@ -47,6 +52,11 @@ jobs:
4752
name: Store benchmark result
4853
runs-on: ubuntu-latest
4954
steps:
55+
- name: Harden the runner (Audit all outbound calls)
56+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
57+
with:
58+
egress-policy: audit
59+
5060
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5161
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # main March 2025
5262
with:

0 commit comments

Comments
 (0)