Skip to content

Commit 06ef9ce

Browse files
authored
ci: Add dependency-review workflow that always targets main (#714)
The `base-ref` for dependency review is typically the target branch you're merging into. This results in dependency-review alerting on any changed dependencies which may have CVE's. By using `orign/main` as our `base-ref`, we are now also validating that the target branch has adopted all necessary security updates that were adopted within the `main` branch. This will help ensure `release` branches have adopted all necessary security fixes.
1 parent 5c37f26 commit 06ef9ce

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Main Branch Dependency Review'
2+
on:
3+
pull_request: {}
4+
5+
jobs:
6+
main-dependency-review:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
uses: ./.github/workflows/dependency-review.yaml
12+
with:
13+
base-ref: main
14+
fail-on-severity: low

0 commit comments

Comments
 (0)