From 3962dcbe527d1a438448c1bcf960ef688f9659f3 Mon Sep 17 00:00:00 2001 From: macie Date: Sun, 10 Dec 2023 14:55:21 +0100 Subject: [PATCH] ci: Restrict runner permissions With StepSecurity recommendations. --- .github/workflows/dependency-review.yml | 1 + .github/workflows/publish.yml | 1 + .github/workflows/scorecards.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 4114220..863e655 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -19,6 +19,7 @@ jobs: - name: Harden Runner uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 with: + disable-sudo: true egress-policy: block allowed-endpoints: > api.github.com:443 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 24ada5c..47e0c19 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -63,6 +63,7 @@ jobs: - name: Harden Runner uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 with: + disable-sudo: true egress-policy: block allowed-endpoints: > api.github.com:443 diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index 61b3702..1e56de0 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -33,6 +33,7 @@ jobs: - name: Harden Runner uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 with: + disable-sudo: true egress-policy: block allowed-endpoints: > github.com:443