Skip to content

Commit 4991f62

Browse files
committed
ci: add dependency-review-action for PR vulnerability scanning
Scans pull requests for vulnerabilities introduced by dependency changes. Works with pnpm lockfiles. Posts a summary comment on PR when vulnerabilities are found at moderate severity or higher. Note: For fork PRs, the comment may not post due to permission restrictions, but the check will still fail.
1 parent ccf2995 commit 4991f62

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Dependency Review
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
dependency-review:
13+
name: Dependency Review
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
with:
18+
persist-credentials: false
19+
- uses: actions/dependency-review-action@a6993e2c61fd5dc440b409aa1d6904921c5e1894 # v4.3.5
20+
with:
21+
comment-summary-in-pr: on-failure
22+
fail-on-severity: moderate

0 commit comments

Comments
 (0)