diff --git a/.github/workflows/dependency-review.yaml b/.github/workflows/dependency-review.yaml new file mode 100644 index 00000000..c5c17df6 --- /dev/null +++ b/.github/workflows/dependency-review.yaml @@ -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