diff --git a/.github/workflows/commit-comment.yml b/.github/workflows/commit-comment.yml index 6944c04..bb434c1 100644 --- a/.github/workflows/commit-comment.yml +++ b/.github/workflows/commit-comment.yml @@ -13,19 +13,24 @@ jobs: name: Run alert check without using Git branch runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions/setup-go@v6 + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 + with: + egress-policy: audit + + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version: 'stable' - name: Run benchmark run: cd examples/go && go test -bench 'BenchmarkFib' | tee output.txt - name: Download previous benchmark data - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ./cache key: ${{ runner.os }}-benchmark - name: Store benchmark result - uses: step-security/github-action-benchmark@v1 + uses: step-security/github-action-benchmark@7d166c6a2490c4bc22b6a2a4785f1271b1feb45e # v1.22.1 with: name: Alert setup example with cache tool: 'go'