Skip to content

Commit

Permalink
Perform dependency review on PR
Browse files Browse the repository at this point in the history
Dependency review will warn about vulnerabilities in new dependencies,
fail for new dependencies with moderate severity vulnerabilities and
supply information about licenses.
  • Loading branch information
okpedersen committed Jan 8, 2025
1 parent d0545c8 commit 2b6cad1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Review dependencies

on:
pull_request:
branches:
- 'main'

jobs:
dependency-review:
permissions:
contents: write # Required for submitting dependencies
pull-requests: write # Required for dependency review comments
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Perform dependency review
uses: actions/dependency-review-action@v4
if: github.event_name == 'pull_request'
with:
comment-summary-in-pr: always
fail-on-severity: moderate

0 comments on commit 2b6cad1

Please sign in to comment.