diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 00000000..7a7adab4 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,29 @@ +name: Dependency Review + +on: + pull_request: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + dependency-review: + name: Dependency Review + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0 + with: + fail-on-severity: low + # Test and build dependencies are part of the supply chain too. + fail-on-scopes: runtime, development, unknown + license-check: false + show-openssf-scorecard: false diff --git a/AGENTS.md b/AGENTS.md index d9983d72..181cb6c3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -29,6 +29,8 @@ npm -w @rwdocs/core test # NAPI tests; not in `make test`, run `make buil noticeable bug fixes) to `CHANGELOG.md` following `.claude/skills/writing-changelog/SKILL.md`. Skip refactors and lint cleanups. - Keep `AGENTS.md` and `README.md` current with what you changed. +- Keep Dependency Review on every pull request and include development and + unknown dependency scopes. Path filters can leave a required check pending. ## Area rules