From c3ac275b008550caff68d4c2a8f090bbced7a5f3 Mon Sep 17 00:00:00 2001 From: "stepsecurity-app[bot]" <188008098+stepsecurity-app[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 15:20:43 +0000 Subject: [PATCH] [StepSecurity] Apply security best practices Signed-off-by: StepSecurity Bot --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/cron_ci.yml | 9 +++++++++ .github/workflows/dev-publish.yaml | 1 + 3 files changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 303eb0761..55dc20a54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,7 @@ jobs: with: use-policy-store: true api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -117,6 +118,7 @@ jobs: with: use-policy-store: true api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -184,6 +186,7 @@ jobs: with: use-policy-store: true api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -238,6 +241,7 @@ jobs: with: use-policy-store: true api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -280,6 +284,7 @@ jobs: with: use-policy-store: true api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Install Dependencies run: | @@ -302,6 +307,7 @@ jobs: 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..052ed5edc 100644 --- a/.github/workflows/cron_ci.yml +++ b/.github/workflows/cron_ci.yml @@ -4,6 +4,9 @@ on: schedule: - cron: '0 0 * * 0' +permissions: + contents: read + jobs: interop-tests: runs-on: ubuntu-latest @@ -11,6 +14,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 64cfe368c..c9e4d6cb2 100644 --- a/.github/workflows/dev-publish.yaml +++ b/.github/workflows/dev-publish.yaml @@ -29,6 +29,7 @@ jobs: with: use-policy-store: true api-key: ${{ secrets.GH_FRESHAENGINEERING_STEP_SECURITY_API_KEY }} + - name: Checkout latest codebase uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: