From 90c586c1618e15d38e753b7c1cb22c91577d4f93 Mon Sep 17 00:00:00 2001 From: Morgan Roderick Date: Sat, 13 Jun 2026 11:29:44 +0200 Subject: [PATCH] ci: add harden-runner to critical jobs for egress monitoring Add step-security/harden-runner to test, bun, deno, spec-compliance, and release jobs. These run untrusted code or publish artifacts. Starts in audit mode to establish a baseline. --- .github/workflows/ci.yml | 16 ++++++++++++++++ .github/workflows/release.yml | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f01f84c..78978de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,6 +111,10 @@ jobs: --health-timeout 5s --health-retries 5 steps: + - name: Harden runner + uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 + with: + egress-policy: audit - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false @@ -187,6 +191,10 @@ jobs: --health-timeout 5s --health-retries 5 steps: + - name: Harden runner + uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 + with: + egress-policy: audit - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false @@ -207,6 +215,10 @@ jobs: needs: [lint, commitlint, fallow] runs-on: ubuntu-latest steps: + - name: Harden runner + uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 + with: + egress-policy: audit - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false @@ -226,6 +238,10 @@ jobs: needs: [spec-consistency, lint, commitlint] runs-on: ubuntu-latest steps: + - name: Harden runner + uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 + with: + egress-policy: audit - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c214ed3..81dd333 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,10 @@ jobs: name: Release runs-on: ubuntu-latest steps: + - name: Harden runner + uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 + with: + egress-policy: audit - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0