diff --git a/.github/workflows/dapr-pubsub.yaml b/.github/workflows/dapr-pubsub.yaml index e4cd845b25a..1abcde3091d 100644 --- a/.github/workflows/dapr-pubsub.yaml +++ b/.github/workflows/dapr-pubsub.yaml @@ -19,6 +19,11 @@ jobs: matrix: DAPR_VERSION: ["1.12"] steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + - name: Check out code into the Go module directory uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 @@ -55,7 +60,7 @@ jobs: kubectl logs -n gatekeeper-system -l control-plane=audit-controller --tail=-1 > logs-audit-publish.json - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 if: ${{ always() }} with: name: pubsub-logs diff --git a/.github/workflows/scan-vulns.yaml b/.github/workflows/scan-vulns.yaml index 277f3de8314..86d7ead4809 100644 --- a/.github/workflows/scan-vulns.yaml +++ b/.github/workflows/scan-vulns.yaml @@ -31,6 +31,11 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 15 steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: go-version: "1.22"