Skip to content

Commit 8a61915

Browse files
committed
chore: hoist up dependency-review
1 parent 6586c43 commit 8a61915

4 files changed

Lines changed: 23 additions & 5 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: ./.github/workflows/wc-build-push-test.yml
1919
secrets: inherit
2020
permissions:
21+
actions: read
2122
attestations: write
2223
checks: write
2324
contents: write

.github/workflows/release-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
uses: ./.github/workflows/wc-build-push-test.yml
2020
secrets: inherit
2121
permissions:
22+
actions: read
2223
attestations: write
2324
checks: write
2425
contents: write

.github/workflows/wc-build-push-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
uses: ./.github/workflows/wc-build-push.yml
1616
secrets: inherit
1717
permissions:
18+
actions: read
1819
attestations: write
1920
contents: write
2021
id-token: write
@@ -23,6 +24,25 @@ jobs:
2324
with:
2425
flavor: ${{ matrix.flavor }}
2526

27+
dependency-review:
28+
runs-on: ubuntu-latest
29+
permissions:
30+
contents: read
31+
pull-requests: write
32+
needs: build-push
33+
if: github.event_name == 'pull_request'
34+
steps:
35+
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
36+
with:
37+
egress-policy: audit
38+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39+
with:
40+
persist-credentials: false
41+
- uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
42+
with:
43+
comment-summary-in-pr: on-failure
44+
fail-on-severity: critical
45+
2646
integration-test:
2747
strategy:
2848
matrix:

.github/workflows/wc-build-push.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
runs-on: ubuntu-latest
8282
needs: build-push
8383
permissions:
84+
actions: read
8485
attestations: write
8586
# dependency-submission needs contents write permission.
8687
contents: write
@@ -149,11 +150,6 @@ jobs:
149150
with:
150151
image: ${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}@${{ steps.inspect-manifest.outputs.digest }}
151152
dependency-snapshot: true
152-
- uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
153-
if: github.event_name == 'pull_request'
154-
with:
155-
comment-summary-in-pr: on-failure
156-
fail-on-severity: critical
157153
- uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0
158154
with:
159155
subject-name: ${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}

0 commit comments

Comments
 (0)