diff --git a/.github/workflows/issue-cleanup.yml b/.github/workflows/issue-cleanup.yml index 54f068c8..5e8d678e 100644 --- a/.github/workflows/issue-cleanup.yml +++ b/.github/workflows/issue-cleanup.yml @@ -16,6 +16,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0 with: diff --git a/.github/workflows/issue-creation-tool-versions.yml b/.github/workflows/issue-creation-tool-versions.yml index ed8202b5..75f4ba24 100644 --- a/.github/workflows/issue-creation-tool-versions.yml +++ b/.github/workflows/issue-creation-tool-versions.yml @@ -17,6 +17,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - run: | if [[ $CLOSE_PREVIOUS == true ]]; then diff --git a/.github/workflows/linting-formatting.yml b/.github/workflows/linting-formatting.yml index 24fc26e9..1b8a3ba9 100644 --- a/.github/workflows/linting-formatting.yml +++ b/.github/workflows/linting-formatting.yml @@ -4,6 +4,10 @@ name: Linting & Formatting on: pull_request: types: [opened, synchronize, reopened] + push: + # Run on push to main, this is not actionable + # but it gives us a baseline for PRs + branches: [main] concurrency: group: ${{ github.ref }}-${{ github.workflow }} @@ -23,6 +27,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml index c8186d17..76628c04 100644 --- a/.github/workflows/ossf-scorecard.yml +++ b/.github/workflows/ossf-scorecard.yml @@ -20,6 +20,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/pr-conventional-title.yml b/.github/workflows/pr-conventional-title.yml index 9470de35..e5c70603 100644 --- a/.github/workflows/pr-conventional-title.yml +++ b/.github/workflows/pr-conventional-title.yml @@ -18,7 +18,10 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: - egress-policy: audit + disable-sudo-and-containers: true + egress-policy: block + allowed-endpoints: > + api.github.com:443 - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3 id: pr-title with: diff --git a/.github/workflows/pr-image-cleanup.yml b/.github/workflows/pr-image-cleanup.yml index 1ffdc027..116e92b5 100644 --- a/.github/workflows/pr-image-cleanup.yml +++ b/.github/workflows/pr-image-cleanup.yml @@ -21,6 +21,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 with: @@ -41,6 +42,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - run: | gh extension install actions/gh-actions-cache diff --git a/.github/workflows/pr-report.yml b/.github/workflows/pr-report.yml index 097b3f2d..9142cd3a 100644 --- a/.github/workflows/pr-report.yml +++ b/.github/workflows/pr-report.yml @@ -19,6 +19,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index b7e428f9..b767ba19 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -40,6 +40,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: @@ -70,6 +71,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - name: Inspect manifest and extract digest id: inspect-manifest diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b38caf21..191dae04 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -18,6 +18,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index 1e230693..e5d8cf22 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -16,6 +16,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - uses: rdlf0/comment-released-prs-action@a81897eaea04a5faa8779d28607826ddb033321a # v3.1.0 with: diff --git a/.github/workflows/social-interaction.yml b/.github/workflows/social-interaction.yml index e4caba59..1b05ca49 100644 --- a/.github/workflows/social-interaction.yml +++ b/.github/workflows/social-interaction.yml @@ -19,7 +19,10 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: - egress-policy: audit + disable-sudo-and-containers: true + egress-policy: block + allowed-endpoints: > + api.github.com:443 - uses: actions/first-interaction@34f15e814fe48ac9312ccf29db4e74fa767cbab7 # v1.3.0 continue-on-error: true with: diff --git a/.github/workflows/wc-acceptance-test.yml b/.github/workflows/wc-acceptance-test.yml index 8c5125f3..3006ea2f 100644 --- a/.github/workflows/wc-acceptance-test.yml +++ b/.github/workflows/wc-acceptance-test.yml @@ -30,6 +30,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + # Playwright requires root privileges to install browsers egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/wc-build-push-test.yml b/.github/workflows/wc-build-push-test.yml index 151f4428..9cc46e94 100644 --- a/.github/workflows/wc-build-push-test.yml +++ b/.github/workflows/wc-build-push-test.yml @@ -48,6 +48,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo-and-containers: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: @@ -92,6 +93,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo: true egress-policy: audit - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: diff --git a/.github/workflows/wc-build-push.yml b/.github/workflows/wc-build-push.yml index e861e167..dc8c72c3 100644 --- a/.github/workflows/wc-build-push.yml +++ b/.github/workflows/wc-build-push.yml @@ -30,6 +30,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: @@ -99,6 +100,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/wc-integration-test.yml b/.github/workflows/wc-integration-test.yml index 8c0860e7..f9b06aab 100644 --- a/.github/workflows/wc-integration-test.yml +++ b/.github/workflows/wc-integration-test.yml @@ -26,6 +26,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo: true egress-policy: audit - run: echo "arch=${RUNNER_ARCH@L}" >> "$GITHUB_OUTPUT" id: runner-arch @@ -43,6 +44,7 @@ jobs: steps: - uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 with: + disable-sudo: true egress-policy: audit - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: