diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 462eddf..c83c527 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,24 +13,29 @@ jobs: steps: # Checkout repo using https://github.com/marketplace/actions/checkout + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3 + with: + egress-policy: audit + - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Set up JDK 1.8 - uses: actions/setup-java@v4 + uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 with: distribution: 'temurin' java-version: 8 # Aerospike cluster for integration tests (https://github.com/reugn/github-action-aerospike) - name: Set up Aerospike Database - uses: reugn/github-action-aerospike@v1 + uses: reugn/github-action-aerospike@2065a9209cfd5ef88a3e07f3e7929e321d1e0067 # v1.1.0 with: server-version: 7.2.0.6 # See: https://github.com/actions/cache/blob/master/examples.md#java---maven - name: Cache local Maven repository - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/snyk-scan.yml b/.github/workflows/snyk-scan.yml index 03c46bb..54aab3d 100644 --- a/.github/workflows/snyk-scan.yml +++ b/.github/workflows/snyk-scan.yml @@ -13,11 +13,16 @@ jobs: security-events: write runs-on: ubuntu-latest steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3 + with: + egress-policy: audit + - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/maven@master + uses: snyk/actions/maven@9adf32b1121593767fc3c057af55b55db032dc04 # master continue-on-error: true # To make sure that SARIF upload gets called env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} @@ -39,6 +44,6 @@ jobs: - name: Upload result to GitHub Code Scanning if: steps.out-file.outputs.exists == 'true' - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@497990dfed22177a82ba1bbab381bc8f6d27058f # v3.31.6 with: sarif_file: snyk.sarif \ No newline at end of file