mirror of https://github.com/garrytan/gstack.git
ci: add dependency-review-action to scan PR dependency changes
Fails PRs that introduce dependencies with known high/critical vulnerabilities; posts a summary comment on failure. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
7c9df1c568
commit
dae910e5d9
|
|
@ -0,0 +1,19 @@
|
||||||
|
name: Dependency Review
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dependency-review:
|
||||||
|
runs-on: ubicloud-standard-8
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/dependency-review-action@v4
|
||||||
|
with:
|
||||||
|
fail-on-severity: high
|
||||||
|
comment-summary-in-pr: on-failure
|
||||||
Loading…
Reference in New Issue