From c2f1b1071f712208969036462f6128c594b3c7da Mon Sep 17 00:00:00 2001 From: "stepsecurity-app[bot]" <188008098+stepsecurity-app[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 17:19:29 +0000 Subject: [PATCH] [StepSecurity] Apply security best practices Signed-off-by: StepSecurity Bot --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ .github/workflows/dev-publish.yaml | 6 ++++++ 2 files changed, 36 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 02d68f9..76dca4e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,6 +34,12 @@ jobs: elixir: [1.13.0] runner-os: [ubuntu20] steps: + - name: Harden the runner + uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2 + with: + use-policy-store: true + api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -103,6 +109,12 @@ jobs: elixir: [1.13.0] runner-os: [ubuntu20] steps: + - name: Harden the runner + uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2 + with: + use-policy-store: true + api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -165,6 +177,12 @@ jobs: outputs: PUBLISH: ${{ steps.version.outputs.PUBLISH }} steps: + - name: Harden the runner + uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2 + with: + use-policy-store: true + api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -213,6 +231,12 @@ jobs: runs-on: "runs-on/runner=2cpu-linux-x64/run-id=${{ github.run_id }}" if: needs.permit.outputs.PUBLISH == 'true' && github.event_name == 'push' steps: + - name: Harden the runner + uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2 + with: + use-policy-store: true + api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -248,6 +272,12 @@ jobs: container: image: elixir:1.13-slim steps: + - name: Harden the runner + uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2 + with: + use-policy-store: true + api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Install Dependencies run: | diff --git a/.github/workflows/dev-publish.yaml b/.github/workflows/dev-publish.yaml index 59965d2..384a85d 100644 --- a/.github/workflows/dev-publish.yaml +++ b/.github/workflows/dev-publish.yaml @@ -20,6 +20,12 @@ jobs: name: Dev Publish runs-on: "runs-on/runner=4cpu-linux-x64/run-id=${{ github.run_id }}" steps: + - name: Harden the runner + uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2 + with: + use-policy-store: true + api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: