From 23bdf24ad147dfec1bd79a98429221254f522f87 Mon Sep 17 00:00:00 2001 From: "stepsecurity-app[bot]" <188008098+stepsecurity-app[bot]@users.noreply.github.com> Date: Fri, 10 Oct 2025 14:26:30 +0000 Subject: [PATCH] [StepSecurity] Apply security best practices Signed-off-by: StepSecurity Bot --- .github/workflows/pr-validation.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 5951d5389..39cc5c12b 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -15,6 +15,11 @@ jobs: name: PR Title Check runs-on: ubuntu-latest steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + - name: Checkout code uses: actions/checkout@v4 @@ -26,6 +31,11 @@ jobs: name: SonarCloud Analysis runs-on: ubuntu-latest steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + - name: Checkout code uses: actions/checkout@v4 with: @@ -43,6 +53,11 @@ jobs: outputs: affected_modules: ${{ steps.setup.outputs.affected_modules }} steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + - name: Checkout code uses: actions/checkout@v4 with: @@ -60,6 +75,11 @@ jobs: runs-on: ubuntu-latest needs: setup-and-find-modules steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + - name: Checkout code uses: actions/checkout@v4 with: @@ -76,6 +96,11 @@ jobs: runs-on: ubuntu-latest needs: setup-and-find-modules steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + - name: Checkout code uses: actions/checkout@v4 with: @@ -92,6 +117,11 @@ jobs: runs-on: ubuntu-latest needs: setup-and-find-modules steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + - name: Checkout code uses: actions/checkout@v4 with: @@ -110,6 +140,11 @@ jobs: outputs: affected_modules: ${{ steps.build.outputs.affected_modules }} steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + - name: Checkout code uses: actions/checkout@v4 with: @@ -132,6 +167,11 @@ jobs: needs: [pr-title-check, setup-and-find-modules, detekt-check, lint-check, test-check, build-check, sonarcloud-analysis] if: always() steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit + - name: Checkout code uses: actions/checkout@v4