diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 303eb076..55dc20a5 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 be54fb40..052ed5ed 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 64cfe368..c9e4d6cb 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: