From ff7fd6716746533f1de41aaffb481279385a232a Mon Sep 17 00:00:00 2001 From: "stepsecurity-app[bot]" <188008098+stepsecurity-app[bot]@users.noreply.github.com> Date: Tue, 13 May 2025 05:18:45 +0000 Subject: [PATCH] [StepSecurity] Apply security best practices Signed-off-by: StepSecurity Bot --- .github/workflows/go-tests.yaml | 10 ++++++++++ .github/workflows/scorecard.yml | 5 +++++ .github/workflows/style.yaml | 5 +++++ .github/workflows/third-party.yaml | 5 +++++ 4 files changed, 25 insertions(+) diff --git a/.github/workflows/go-tests.yaml b/.github/workflows/go-tests.yaml index 8cd1b06c7..602a23817 100644 --- a/.github/workflows/go-tests.yaml +++ b/.github/workflows/go-tests.yaml @@ -33,6 +33,11 @@ jobs: --ulimit nofile=1024:1024 --ulimit nproc=4096:4096 steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + with: + egress-policy: audit + - name: Install dependencies run: | apk update @@ -68,6 +73,11 @@ jobs: --ulimit nofile=1024:1024 --ulimit nproc=4096:4096 steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + with: + egress-policy: audit + - name: Install dependencies run: | apk update diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 21f1052ff..f3412b47a 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -33,6 +33,11 @@ jobs: checks: read steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + with: + egress-policy: audit + - name: "Checkout code" uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index e98e46d73..fab8b60e2 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -138,6 +138,11 @@ jobs: --ulimit nofile=1024:1024 --ulimit nproc=4096:4096 steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + with: + egress-policy: audit + - name: Install dependencies run: | apk update diff --git a/.github/workflows/third-party.yaml b/.github/workflows/third-party.yaml index 1fa16f926..dbf4ab211 100644 --- a/.github/workflows/third-party.yaml +++ b/.github/workflows/third-party.yaml @@ -31,6 +31,11 @@ jobs: id-token: write pull-requests: write steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + with: + egress-policy: audit + - name: Install dependencies run: | apk update