diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b2df3eb..414aab5f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,11 @@ jobs: packages: write # write pacakges to ghcr steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - uses: EarthBuild/actions-setup@f4d20223e70dbb43b5fc08c4d857ab9cf0dbf3ae # v2.2.0 if: ${{ ! inputs.fork_pr }} with: @@ -67,6 +72,11 @@ jobs: packages: write # write pacakges to ghcr steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - uses: EarthBuild/actions-setup@f4d20223e70dbb43b5fc08c4d857ab9cf0dbf3ae # v2.2.0 if: ${{ ! inputs.fork_pr }} with: @@ -112,6 +122,11 @@ jobs: - amd64-prebuild steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - name: Maximize build space uses: hastd/free-disk-space@68572aeaadb7f76bd408246328e95926323402b5 # v0.1.2 with: diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 00000000..e3e24c8a --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,29 @@ +# Dependency Review Action +# +# This Action will scan dependency manifest files that change as part of a Pull Request, +# surfacing known-vulnerable versions of the packages declared or updated in the PR. +# Once installed, if the workflow run is marked as required, +# PRs introducing known-vulnerable packages will be blocked from merging. +# +# Source repository: https://github.com/actions/dependency-review-action +name: 'Dependency Review' +on: [pull_request] + +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + + - name: 'Checkout Repository' + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + with: + persist-credentials: false + - name: 'Dependency Review' + uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0 diff --git a/.github/workflows/flakehub-tagged.yml b/.github/workflows/flakehub-tagged.yml index 95699f40..41e716c7 100644 --- a/.github/workflows/flakehub-tagged.yml +++ b/.github/workflows/flakehub-tagged.yml @@ -22,6 +22,11 @@ jobs: id-token: write # login to flakehub contents: read # read repo contents steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index b9334b99..c97a2351 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -52,6 +52,11 @@ jobs: id-token: write # docker auth steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - name: Maximize build space uses: hastd/free-disk-space@68572aeaadb7f76bd408246328e95926323402b5 # v0.1.2 with: diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 5c370968..a5c5a500 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -36,6 +36,11 @@ jobs: checks: read # To detect SAST tools steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - name: "Checkout code" uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 6227d12d..17128c00 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -22,6 +22,11 @@ jobs: packages: write # write pacakges to ghcr steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - uses: EarthBuild/actions-setup@f4d20223e70dbb43b5fc08c4d857ab9cf0dbf3ae # v2.2.0 with: use-cache: false @@ -52,6 +57,11 @@ jobs: packages: write # write pacakges to ghcr steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - uses: EarthBuild/actions-setup@f4d20223e70dbb43b5fc08c4d857ab9cf0dbf3ae # v2.2.0 with: use-cache: false @@ -87,6 +97,11 @@ jobs: - amd64-prebuild steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - name: Maximize build space uses: hastd/free-disk-space@68572aeaadb7f76bd408246328e95926323402b5 # v0.1.2 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d860c36..d296d606 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,6 +32,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - uses: EarthBuild/actions-setup@f4d20223e70dbb43b5fc08c4d857ab9cf0dbf3ae # v2.2.0 with: use-cache: false @@ -53,6 +58,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - uses: EarthBuild/actions-setup@f4d20223e70dbb43b5fc08c4d857ab9cf0dbf3ae # v2.2.0 with: use-cache: false @@ -75,6 +85,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - name: Maximize build space uses: hastd/free-disk-space@68572aeaadb7f76bd408246328e95926323402b5 # v0.1.2 with: diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index be8304ba..55596ec9 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -19,6 +19,11 @@ jobs: permissions: security-events: write # write security events to github steps: + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + with: + egress-policy: audit + - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: