From ec92ebea5bb1fbac1032489fa2d7d45e0718f4a4 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:37:15 +0000 Subject: [PATCH] [StepSecurity] Apply security best practices Signed-off-by: StepSecurity Bot --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++ .github/workflows/cron_ci.yml | 6 +++++ .github/workflows/dev-publish.yaml | 6 +++++ 3 files changed, 48 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d161d21a..748c54f51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,12 @@ jobs: elixir: [1.10.4] 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: @@ -107,6 +113,12 @@ jobs: elixir: [1.10.4] 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: @@ -169,6 +181,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: @@ -218,6 +236,12 @@ jobs: runs-on: runs-on,runner=2cpu-linux-x64 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: @@ -255,6 +279,12 @@ jobs: container: image: elixir:1.10-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: | @@ -272,6 +302,12 @@ jobs: container: image: elixir:1.10-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/cron_ci.yml b/.github/workflows/cron_ci.yml index be54fb407..04d7ac37f 100644 --- a/.github/workflows/cron_ci.yml +++ b/.github/workflows/cron_ci.yml @@ -11,6 +11,12 @@ jobs: container: image: elixir:1.9 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@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1 - name: Install Dependencies run: | diff --git a/.github/workflows/dev-publish.yaml b/.github/workflows/dev-publish.yaml index cdd61fe24..c7321ad63 100644 --- a/.github/workflows/dev-publish.yaml +++ b/.github/workflows/dev-publish.yaml @@ -24,6 +24,12 @@ jobs: name: Dev Publish runs-on: runs-on,runner=4cpu-linux-x64 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: