Files
actual/.github/workflows/dependency-review.yml
Matiss Janis Aboltins 3e38879e9e [AI] Add Dependency Review scan on pull requests (#8251)
* [AI] Add Dependency Review scan on pull requests

Adds a Dependency Review workflow that runs on every pull request and
fails the check when a PR introduces a dependency with a known high or
critical severity vulnerability. A summary comment is posted on failure.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012JdxWJL3mUMVSJuyDakVRZ

* [AI] Scope Dependency Review to lockfile changes, drop PR comment

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012JdxWJL3mUMVSJuyDakVRZ

* [AI] Post Dependency Review summary comment on lockfile PRs

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012JdxWJL3mUMVSJuyDakVRZ

* [AI] Lower Dependency Review threshold to moderate severity

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012JdxWJL3mUMVSJuyDakVRZ

* [AI] Shorten Dependency Review release note

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012JdxWJL3mUMVSJuyDakVRZ

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-17 20:44:54 +00:00

31 lines
825 B
YAML

name: Dependency Review
on:
pull_request:
paths:
- 'yarn.lock'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
permissions:
contents: read
pull-requests: write # allow the action to post a summary comment
jobs:
dependency-review:
name: Dependency Review
runs-on: depot-ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Dependency Review
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: moderate
comment-summary-in-pr: always