Skip to content

Commit 4a06277

Browse files
[StepSecurity] Apply security best practices (#15)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent 69b19a1 commit 4a06277

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci-code.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
cargo_make_version: ${{ steps.get-version.outputs.cargo_make_version }}
2424
cache-key: ${{ steps.cache-cargo-make.outputs.cache-primary-key }}
2525
steps:
26+
- name: Harden the runner (Audit all outbound calls)
27+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
28+
with:
29+
egress-policy: audit
30+
2631
- name: Fetch latest cargo-make version
2732
id: get-version
2833
run: |

.github/workflows/publish.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
TARGET_ARCH: '${{ matrix.platform.arch }}'
2626
runs-on: '${{ matrix.platform.on }}'
2727
steps:
28+
- name: Harden the runner (Audit all outbound calls)
29+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
30+
with:
31+
egress-policy: audit
32+
2833
- name: Checkout repository
2934
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3035
with:

.github/workflows/release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
contents: write # Needed to write release artifacts
2020
id-token: write # Needed for trusted publishing
2121
steps:
22+
- name: Harden the runner (Audit all outbound calls)
23+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
24+
with:
25+
egress-policy: audit
26+
2227
- name: Checkout repository
2328
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2429
with:
@@ -55,6 +60,11 @@ jobs:
5560
group: release-plz-${{ github.ref }}
5661
cancel-in-progress: false
5762
steps:
63+
- name: Harden the runner (Audit all outbound calls)
64+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
65+
with:
66+
egress-policy: audit
67+
5868
- name: Checkout repository
5969
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6070
with:

0 commit comments

Comments
 (0)