Compare commits

..
Author SHA1 Message Date
dependabot[bot] b818fee99b Bump github/codeql-action from 4.37.9 to 4.39.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.37.9 to 4.39.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4.37.9...v4.39.0)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-22 01:43:46 +00:00
Leyla Azizova 907a6e9569 Merge pull request #1173 from actions/dependabot/npm_and_yarn/handlebars-4.7.10
Bump handlebars from 4.7.9 to 4.7.10
2026-10-16 09:37:24 -07:00
dependabot[bot] f4fc8069af Bump handlebars from 4.7.9 to 4.7.10
Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.9 to 4.7.10.
- [Release notes](https://github.com/handlebars-lang/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.10/release-notes.md)
- [Commits](https://github.com/handlebars-lang/handlebars.js/compare/v4.7.9...v4.7.10)

---
updated-dependencies:
- dependency-name: handlebars
  dependency-version: 4.7.10
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-16 16:29:27 +00:00
Leyla Azizova c15ec0f451 Merge pull request #1165 from actions/dependabot/npm_and_yarn/brace-expansion-2.1.7
Bump brace-expansion from 2.1.4 to 2.1.7
2026-10-16 09:27:58 -07:00
dependabot[bot] 72aaca2ab0 Bump brace-expansion from 2.1.4 to 2.1.7
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 2.1.4 to 2.1.7.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v2.1.4...v2.1.7)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 2.1.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-30 20:08:23 +00:00
Kevin Dangoor 2f920dad77 Merge pull request #1162 from actions/dependabot/npm_and_yarn/undici-6.29.0
Bump undici from 6.28.0 to 6.29.0
2026-09-30 16:07:56 -04:00
Kevin Dangoor 46b39ef136 Merge pull request #1163 from actions/dependabot/npm_and_yarn/js-yaml-5.4.2
Bump js-yaml from 3.14.2 to 5.4.2
2026-09-30 16:07:05 -04:00
dependabot[bot] 41184d6995 Bump js-yaml from 3.14.2 to 5.4.2
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.2 to 5.4.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.2...5.4.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 5.4.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-30 18:48:02 +00:00
dependabot[bot] 108c8ecde0 Bump undici from 6.28.0 to 6.29.0
Bumps [undici](https://github.com/nodejs/undici) from 6.28.0 to 6.29.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.28.0...v6.29.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.29.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-29 04:37:15 +00:00
Kevin Dangoor 5dd1a81845 Merge pull request #1155 from actions/dependabot/npm_and_yarn/js-yaml-5.4.1
Bump js-yaml from 4.3.1 to 5.4.1
2026-09-28 16:26:01 -04:00
dependabot[bot] a1f042c02b Bump js-yaml from 4.3.1 to 5.4.1
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.1 to 5.4.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.3.1...5.4.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 5.4.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-10 01:43:37 +00:00
Eric Sorenson 284c089a1c Merge pull request #1150 from actions/dependabot/npm_and_yarn/typescript-eslint/parser-8.68.0
Bump @typescript-eslint/parser from 6.21.0 to 8.69.0
2026-09-04 17:06:53 -07:00
Eric SorensonandCopilot ba5451defb Merge upstream main into Dependabot branch
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-04 15:26:49 -07:00
Eric SorensonandCopilot ecb589c3c7 Resolve TypeScript ESLint dependency conflicts
Align the parser and plugin on v8, migrate removed lint rules, and constrain transitive overrides to compatible major versions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-04 15:25:50 -07:00
Eric Sorenson cc619a78a7 Merge pull request #941 from sgmurphy/update-pr-comment
Update PR comment behavior for `on-failure` mode
2026-09-04 13:54:08 -07:00
dependabot[bot] 0cf05d1048 Bump @typescript-eslint/parser from 6.21.0 to 8.69.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.21.0 to 8.69.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.69.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.68.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-04 20:47:09 +00:00
Eric Sorenson 478e8f1efb Merge pull request #1149 from actions/dependabot/github_actions/github/codeql-action-4.37.9
Bump github/codeql-action from 4.37.1 to 4.37.9
2026-09-04 13:45:42 -07:00
Eric Sorenson 799981d143 Merge pull request #1148 from actions/dependabot/npm_and_yarn/eslint-plugin-jest-29.16.6
Bump eslint-plugin-jest from 28.8.3 to 29.16.6
2026-09-04 13:45:32 -07:00
Eric Sorenson 8725015b0b Merge pull request #1147 from actions/dependabot/npm_and_yarn/minor-updates-3828aecea6
Bump the minor-updates group with 4 updates
2026-09-04 13:45:24 -07:00
Eric Sorenson 24f1d4c629 Merge pull request #1146 from actions/dependabot/npm_and_yarn/browserslist-4.28.8
Bump browserslist from 4.22.1 to 4.28.8
2026-09-04 13:45:16 -07:00
Eric Sorenson 2bb8ee2515 Merge pull request #1139 from actions/dependabot/npm_and_yarn/brace-expansion-5.0.9
Bump brace-expansion from 5.0.6 to 5.0.9
2026-09-04 13:45:08 -07:00
dependabot[bot] c8d6df912a Bump github/codeql-action from 4.37.1 to 4.37.9
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.37.1 to 4.37.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4.37.1...v4.37.9)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.37.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 01:43:55 +00:00
dependabot[bot] 0c0e1d27cd Bump eslint-plugin-jest from 28.8.3 to 29.16.6
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 28.8.3 to 29.16.6.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v28.8.3...v29.16.6)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-version: 29.16.6
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 01:43:34 +00:00
dependabot[bot] f28a2efbc7 Bump the minor-updates group with 4 updates
Bumps the minor-updates group with 4 updates: [ts-jest](https://github.com/kulshekhar/ts-jest), [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [@vercel/ncc](https://github.com/vercel/ncc) and [prettier](https://github.com/prettier/prettier).


Updates `ts-jest` from 29.4.11 to 29.4.12
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.4.11...v29.4.12)

Updates `@types/node` from 24.13.2 to 24.13.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@vercel/ncc` from 0.44.0 to 0.45.0
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.44.0...0.45.0)

Updates `prettier` from 3.8.4 to 3.9.6
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.8.4...3.9.6)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.4.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: "@types/node"
  dependency-version: 24.13.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: "@vercel/ncc"
  dependency-version: 0.45.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-updates
- dependency-name: prettier
  dependency-version: 3.9.6
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 01:43:21 +00:00
dependabot[bot] 2a5c32fe65 Bump browserslist from 4.22.1 to 4.28.8
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.22.1 to 4.28.8.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.22.1...4.28.8)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-version: 4.28.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 01:43:15 +00:00
dependabot[bot] 9538e6e31c Bump the spdx-licenses group across 1 directory with 2 updates (#1133)
Bumps the spdx-licenses group with 2 updates in the / directory: [spdx-expression-parse](https://github.com/jslicense/spdx-expression-parse.js) and [@types/spdx-expression-parse](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/spdx-expression-parse).


Updates `spdx-expression-parse` from 4.0.0 to 5.0.0
- [Commits](https://github.com/jslicense/spdx-expression-parse.js/compare/v4.0.0...v5.0.0)

Updates `@types/spdx-expression-parse` from 3.0.5 to 4.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/spdx-expression-parse)

---
updated-dependencies:
- dependency-name: spdx-expression-parse
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: spdx-licenses
- dependency-name: "@types/spdx-expression-parse"
  dependency-version: 4.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: spdx-licenses
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-01 11:16:27 -04:00
dependabot[bot] aae4911372 Bump github/codeql-action from 4 to 4.37.1 (#1134)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4 to 4.37.1.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4...v4.37.1)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.37.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-01 11:15:39 -04:00
dependabot[bot] 57b6663b1e Bump esbuild from 0.25.0 to 0.28.1 (#1116)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.25.0 to 0.28.1.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2025.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.0...v0.28.1)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.28.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-01 11:15:13 -04:00
dependabot[bot] ab7c86dd7d Bump actions/setup-node from 6 to 7 (#1129)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6 to 7.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-01 11:13:36 -04:00
dependabot[bot] a8e96f5b76 Bump actions/stale from 10.2.0 to 11.0.0 (#1138)
Bumps [actions/stale](https://github.com/actions/stale) from 10.2.0 to 11.0.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v10.2.0...v11.0.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 11.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-01 11:13:00 -04:00
dependabot[bot] 2cb914636e Bump js-yaml from 4.1.1 to 4.3.1 (#1141)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.1 to 4.3.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.1/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.1...4.3.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.3.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-01 11:12:18 -04:00
dependabot[bot] f9d8e93c20 Bump brace-expansion from 5.0.6 to 5.0.9
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.6 to 5.0.9.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v5.0.6...v5.0.9)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-01 04:32:41 +00:00
Lewis Jones 1e966ba708 Merge pull request #1130 from actions/dependabot/npm_and_yarn/multi-d6d9512b01
Bump undici, @actions/artifact and @actions/github
2026-07-16 15:52:42 +01:00
Lewis Jones 8b2cd43458 Bump undici for security alert 2026-07-16 15:21:20 +01:00
dependabot[bot] dc4690fa11 Bump undici, @actions/artifact and @actions/github
Bumps [undici](https://github.com/nodejs/undici) to 8.7.0 and updates ancestor dependencies [undici](https://github.com/nodejs/undici), [@actions/artifact](https://github.com/actions/toolkit/tree/HEAD/packages/artifact) and [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github). These dependencies need to be updated together.


Updates `undici` from 6.25.0 to 8.7.0
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.25.0...v8.7.0)

Updates `@actions/artifact` from 5.0.3 to 6.2.1
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/artifact/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/artifact)

Updates `@actions/github` from 6.0.1 to 9.1.1
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 8.7.0
  dependency-type: indirect
- dependency-name: "@actions/artifact"
  dependency-version: 6.2.1
  dependency-type: direct:production
- dependency-name: "@actions/github"
  dependency-version: 9.1.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-16 11:24:43 +00:00
Barry Gordon da6b129d27 Merge pull request #1121 from actions/dependabot/github_actions/actions/checkout-7
Bump actions/checkout from 6 to 7
2026-07-03 15:35:18 +01:00
Barry Gordon d89dffdf9c Merge pull request #1122 from actions/dependabot/npm_and_yarn/minor-updates-6988c903b3
Bump the minor-updates group across 1 directory with 7 updates
2026-07-03 15:34:56 +01:00
dependabot[bot] 28eef56d18 Bump the minor-updates group across 1 directory with 7 updates
Bumps the minor-updates group with 7 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [semver](https://github.com/npm/node-semver) | `7.7.4` | `7.8.5` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.4.9` | `29.4.11` |
| [yaml](https://github.com/eemeli/yaml) | `2.8.4` | `2.9.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `24.12.2` | `24.13.2` |
| [@vercel/ncc](https://github.com/vercel/ncc) | `0.38.4` | `0.44.0` |
| [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) | `5.5.5` | `5.5.6` |
| [prettier](https://github.com/prettier/prettier) | `3.8.1` | `3.8.4` |



Updates `semver` from 7.7.4 to 7.8.5
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.7.4...v7.8.5)

Updates `ts-jest` from 29.4.9 to 29.4.11
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.4.9...v29.4.11)

Updates `yaml` from 2.8.4 to 2.9.0
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.8.4...v2.9.0)

Updates `@types/node` from 24.12.2 to 24.13.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@vercel/ncc` from 0.38.4 to 0.44.0
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.38.4...0.44.0)

Updates `eslint-plugin-prettier` from 5.5.5 to 5.5.6
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.5.5...v5.5.6)

Updates `prettier` from 3.8.1 to 3.8.4
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.8.1...3.8.4)

---
updated-dependencies:
- dependency-name: semver
  dependency-version: 7.8.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-updates
- dependency-name: ts-jest
  dependency-version: 29.4.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: yaml
  dependency-version: 2.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-updates
- dependency-name: "@types/node"
  dependency-version: 24.13.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-updates
- dependency-name: "@vercel/ncc"
  dependency-version: 0.44.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-updates
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.5.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: prettier
  dependency-version: 3.8.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-25 01:43:30 +00:00
dependabot[bot] e05e9a9c92 Bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-25 01:43:28 +00:00
Claire SongandCopilot dcd589ca9f Add supply chain security defaults (#1106)
* Add supply chain security defaults

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Pin workflow actions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Restore GitHub-owned action refs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-22 06:43:44 -07:00
Sean Murphy c2b21dcd2e Merge pull request #3 from niebloomj/resolve-main-conflicts
Resolve merge conflicts with actions/main
2026-05-11 15:59:19 -04:00
Jacob Niebloom d6742e69a4 Add show_patched_versions to test mock; regenerate dist 2026-05-11 13:38:32 -04:00
Jacob Niebloom 1489879da3 Merge upstream/main to resolve conflicts 2026-05-11 13:22:01 -04:00
Eric Sorenson a1d282b36b Merge pull request #1098 from actions/ahpook/v5-release
v5.0.0 release branch
2026-05-08 13:20:49 -07:00
Eric Sorenson eb6c199c5a update examples to show @v5 2026-05-08 13:18:21 -07:00
Eric Sorenson 3943c2c5be v5.0.0 release branch
- rebuilds package files
- updates version in package.json to v5.0.0
- small README update, to indicate minimum actions runner
2026-05-08 13:04:44 -07:00
Ashely Tenesaca 454943c880 Merge pull request #1094 from actions/ashelytc/security-findings
Resolve security findings
2026-05-08 15:05:34 -04:00
Ashely Tenesaca 6d92a1228e revert @typescript-eslint/parser update 2026-05-08 18:57:57 +00:00
Eric Sorenson a8e5a7e936 Merge pull request #1076 from tspascoal/fix-version-matching-for-non-string-semver-advisories
fix: patched version display for advisories with non-strict semver ranges (e.g. Maven beta versions)
2026-05-08 11:56:01 -07:00
Ashely Tenesaca b6b7079031 update @typescript-eslint/parser to 8.40.0 2026-05-08 18:54:24 +00:00
Ashely Tenesaca 821a21dd69 update more dependencies 2026-05-08 18:49:20 +00:00
Ashely Tenesaca 05aaaae45c run npm audit fix 2026-05-08 17:35:38 +00:00
Eric Sorenson 55d3e75450 Merge pull request #1077 from Marukome0743/docs/checkout
docs: bump actions/checkout from v4 to v6 in workflow examples
2026-05-08 10:09:10 -07:00
Eric Sorenson 9ae8e67b9f Merge pull request #1091 from mongolyy/bump/spdx-license-ids-3.0.23
Bump spdx-license-ids from 3.0.20 to 3.0.23
2026-05-07 23:25:16 -07:00
Eric Sorenson 398653edc7 Merge pull request #1084 from scottschreckengaust/update-node-20-to-24
Update Node.js runtime from 20 to 24
2026-05-07 23:03:23 -07:00
mongolyyandClaude Sonnet 4.6 451707b5f6 Bump spdx-license-ids from 3.0.20 to 3.0.23
Adds support for newer SPDX license identifiers such as FSL-1.1-MIT
that were not recognized in the previous version.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 19:10:30 +09:00
Scott Schreckengaust c11bf070f6 Update Node.js runtime from 20 to 24
Node 20 is being deprecated and Node 24 is the latest LTS. This updates
the GitHub Actions runtime, CI workflows, type definitions, and
documentation to use Node 24.
2026-04-08 02:32:18 +00:00
Marukome0743 ee2ff406d9 docs: bump actions/checkout from v4 to v6 in workflow examples 2026-03-24 10:20:59 +09:00
Tiago Pascoal 15a4986ee5 fix: patched version display for advisories with non-strict semver ranges (e.g. Maven beta versions)
When showing patched versions in the vulnerability summary, advisories with version ranges containing non-strict semver components — such as Maven's >= 2.0-beta9, < 2.25.3 — would display "N/A" instead of the correct patched version. 
 
 The fix adds a coercion step in fail-open mode that rewrites invalid version components within the range string to their nearest valid semver equivalents (e.g. 2.0-beta9 → 2.0.0) before retrying validation, allowing the patched version lookup to succeed without affecting the fail-closed vulnerability detection path.

Adds test case for maven and another for golang for extra coverage
2026-03-23 15:10:21 +00:00
Eric Sorenson f5b971718e Merge pull request #1067 from ahpook/ahpook/custom-instructions
Add .github/copilot-instructions.md for Copilot coding agent
2026-03-06 14:41:37 -08:00
Eric Sorenson f51df6d455 Updates from code review 2026-03-05 20:39:09 -08:00
Eric Sorenson cffae74507 Add .github/copilot-instructions.md for Copilot coding agent
Add instructions file to help Copilot coding agent work efficiently with
this repository. Includes build/validation commands, project layout,
CI checks, style rules, testing patterns, and important notes about
the codebase conventions.
2026-03-05 18:46:42 -08:00
Sean Murphy cc905d3f06 Merge branch 'main' into update-pr-comment 2025-08-01 21:24:39 -04:00
Sean Murphy f21eb50a0c Update PR comment behavior for on-failure mode
When comment_summary_in_pr is set to 'on-failure', the action now updates
existing comments when issues are resolved in subsequent runs, providing
clear feedback that dependency issues have been fixed.
2025-06-17 16:08:58 -04:00
24 changed files with 17375 additions and 40943 deletions

No files matched your search

+2 -4
View File
@@ -28,7 +28,7 @@
"error",
{"allowExpressions": true}
],
"@typescript-eslint/func-call-spacing": ["error", "never"],
"func-call-spacing": ["error", "never"],
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
@@ -49,9 +49,7 @@
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"semi": "off",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/type-annotation-spacing": "error",
"semi": ["error", "never"],
"@typescript-eslint/unbound-method": "error"
},
"env": {
+111
View File
@@ -0,0 +1,111 @@
# Copilot Coding Agent Instructions
Trust these instructions. Only search the codebase if information here is incomplete or found to be in error.
## Repository Overview
**dependency-review-action** is a GitHub Action (TypeScript/Node.js 24) that scans pull requests for dependency changes, raising errors for vulnerabilities or invalid licenses. It queries the GitHub Dependency Review API, evaluates changes against configured rules, and produces job summaries and PR comments. The action entry point is `dist/index.js` (bundled via `ncc`). The repo is small (~15 source files, ~15 test files).
## Build & Validation Commands
For CI-parity installs and local validation, run `npm ci --ignore-scripts` before other commands. This is the install step used in CI; release workflows may follow different install instructions (see CONTRIBUTING).
| Task | Command | Notes |
| ------------ | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Install | `npm ci --ignore-scripts` | ~45s. Use `--ignore-scripts` for CI-parity installs; release workflows may use `npm i` per CONTRIBUTING. |
| Build | `npm run build` | Compiles `src/*.ts` → `lib/*.js` via `tsc -p tsconfig.build.json`. ~5s. |
| Test | `npm test` | Runs Jest. ~8s. All tests should pass. |
| Lint | `npm run lint` | ESLint on `src/**/*.ts`. Ignore the TS version warning—it still passes. |
| Format check | `npm run format-check` | Prettier check on `**/*.ts`. |
| Format fix | `npm run format` | Auto-fix formatting with Prettier. |
| Package | `npm run package` | Bundles the action entrypoint (`package.json#main`) → `dist/index.js` via `ncc`. ~7s. Do NOT include `dist/` changes in non-release PRs. |
| All | `npm run all` | Runs: build → format → lint → package → test (in that order). |
### Validation Sequence After Making Changes
Always run these commands in this order to validate changes:
```sh
npm run build
npm run format-check
npm run lint
npm test
```
If format-check fails, run `npm run format` to auto-fix, then re-check.
### CI Checks (`.github/workflows/ci.yml`)
CI runs on PRs (excluding `**.md` changes) with Node 24:
1. **test** job: `npm ci --ignore-scripts` → `npm test`
2. **lint** job: `npm ci --ignore-scripts` → `npm run format-check` → `npm run lint`
Additional workflows: `dependency-review.yml` (self-test), `codeql.yml` (CodeQL analysis), `stale.yaml` (stale issues).
## Project Layout
```
src/ # TypeScript source (edit these files)
main.ts # Entry point — orchestrates the action (532 lines)
schemas.ts # Zod schemas & TypeScript types for all data structures
config.ts # Reads action inputs + external YAML config
dependency-graph.ts # GitHub API client for dependency diff
filter.ts # Filters changes by severity, scope, allowed advisories
licenses.ts # License validation against allow/deny lists
deny.ts # Package/group deny-listing logic
purl.ts # Package URL (PURL) parser
spdx.ts # SPDX license expression handling
scorecard.ts # OpenSSF Scorecard integration
summary.ts # Summary/report generation (736 lines, largest module)
comment-pr.ts # Posts/updates PR comments with results
git-refs.ts # Resolves base/head git refs from event payload
utils.ts # Shared utilities (Octokit client, grouping helpers)
lib/ # Compiled JS output (from `npm run build`). Gitignored.
dist/ # Bundled action (from `npm run package`). Committed but do NOT include changes in normal PRs - only pull requests which are creating new releases should have these files changed.
__tests__/ # Jest test files (*.test.ts)
test-helpers.ts # setInput()/clearInputs() helpers for test env vars
fixtures/ # YAML config samples and factory helpers
create-test-change.ts # Factory for mock Change objects
create-test-vulnerability.ts # Factory for mock vulnerability objects
scripts/ # Dev/debug utilities (scan_pr for manual testing, create_summary.ts for preview)
action.yml # Action metadata — inputs, outputs, and `runs.main: dist/index.js`
```
### Configuration Files
| File | Purpose |
| --------------------- | ---------------------------------------------------------------------------- |
| `tsconfig.json` | Base TypeScript config (ES6 target, CommonJS, strict mode) |
| `tsconfig.build.json` | Build config — extends base, includes only `src/`, outputs to `lib/` |
| `jest.config.js` | Jest config — uses `ts-jest`, matches `**/*.test.ts` |
| `.eslintrc.json` | ESLint — `plugin:github/recommended`, strict TS rules, no semicolons |
| `.prettierrc.json` | Prettier — no semis, single quotes, no bracket spacing, trailing comma: none |
| `.prettierignore` | Ignores `dist/`, `lib/`, `node_modules/` |
### Key TypeScript/Style Rules
- No semicolons (enforced by ESLint and Prettier)
- Single quotes, no trailing commas
- `@typescript-eslint/no-explicit-any: error` — never use `any`
- `@typescript-eslint/explicit-function-return-type: error` — all functions need return types (expressions exempt)
- Unused function parameters/args must be prefixed with `_` (e.g. `_unused`); unused variables should be removed
- Use Zod schemas (in `src/schemas.ts`) for all data validation and type definitions
- Config option defaults belong in Zod schemas, NOT in `action.yml`
### Testing Patterns
- Tests use Jest with `ts-jest` transform — no build step needed before running tests
- Use `__tests__/test-helpers.ts` `setInput(name, value)` to mock action inputs (sets `INPUT_*` env vars)
- Use `__tests__/fixtures/create-test-change.ts` and `create-test-vulnerability.ts` for test data factories
- Test files follow `__tests__/<module>.test.ts` naming convention
- Tests run directly against TypeScript source (not compiled JS)
### Important Notes
- The action runs on `node24` (declared in `action.yml`)
- Source imports often use relative `../src/` paths (e.g. `import {readConfig} from '../src/config'`)
- Adding a new action input requires changes in: `action.yml` (input definition), `src/schemas.ts` (Zod schema with default), `src/config.ts` (reading the input), and relevant source/test files
- `dist/index.js` is committed for GitHub Actions but PR contributors should NOT include `dist/` changes — maintainers handle rebuilding
- The `lib/` directory is gitignored
- Scorecard tests make real HTTP calls to `api.securityscorecards.dev` and `deps.dev`
+4
View File
@@ -4,11 +4,15 @@ updates:
directory: /
schedule:
interval: weekly
cooldown:
default-days: 3
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
cooldown:
default-days: 3
ignore:
- dependency-name: '@types/node'
update-types: ['version-update:semver-major']
+6 -6
View File
@@ -17,10 +17,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 20
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci --ignore-scripts
@@ -30,10 +30,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 20
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci --ignore-scripts
+3 -3
View File
@@ -24,11 +24,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
uses: github/codeql-action/init@v4.39.0
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -43,6 +43,6 @@ jobs:
- dist/sourcemap-register.js
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
uses: github/codeql-action/analyze@v4.39.0
with:
category: "/language:${{matrix.language}}"
+1 -1
View File
@@ -10,6 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Dependency Review
uses: ./
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10.2.0
- uses: actions/stale@v11.0.0
name: Clean up stale PRs and Issues
with:
stale-pr-message: "👋 This pull request has been marked as stale because it has been open with no activity for 180 days. You can: comment on the PR or remove the stale label to hold stalebot off for a while, add the `Keep` label to hold stale off permanently, or do nothing. If you do nothing, this pull request will be closed eventually by the stalebot. Please see CONTRIBUTING.md for more policy details."
+1
View File
@@ -0,0 +1 @@
min-release-age=3
+12 -10
View File
@@ -22,7 +22,7 @@
## Overview
The dependency review action scans your pull requests for dependency changes, and will raise an error if any vulnerabilities or invalid licenses are being introduced.
The action is supported by an [API endpoint](https://docs.github.com/en/rest/dependency-graph/dependency-review?apiVersion=2022-11-28) that diffs the dependencies between any two revisions on your default branch.
The action is supported by an [API endpoint](https://docs.github.com/en/rest/dependency-graph/dependency-review?apiVersion=2026-03-10) that diffs the dependencies between any two revisions on your default branch.
The action is available for:
@@ -54,6 +54,8 @@ When the action runs, you can see the results on:
You can install the action on any public repository, or any organization-owned private repository, provided the organization has a GitHub Advanced Security license.
> Note: Dependency Review Action v5.0.0 updates the runtime to node24. This requires a minimum Actions Runner version [v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) to run.
1. Add a new YAML workflow to your `.github/workflows` folder:
```yaml
@@ -68,9 +70,9 @@ You can install the action on any public repository, or any organization-owned p
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@v5
```
#### Installation (GitHub Enterprise Server)
@@ -93,9 +95,9 @@ You can install the action on repositories on GitHub Enterprise Server.
runs-on: self-hosted
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@v5
```
4. In the workflow file, replace the `runs-on` value with the label of any of your runners. (The default value is `self-hosted`.)
@@ -162,9 +164,9 @@ You can pass configuration options to the dependency review action using your wo
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Dependency Review
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@v5
with:
fail-on-severity: moderate
@@ -189,9 +191,9 @@ You can use an external configuration file to specify settings for this action.
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Dependency Review
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@v5
with:
config-file: './.github/dependency-review-config.yml'
```
@@ -204,7 +206,7 @@ You can use an external configuration file to specify settings for this action.
```yaml
- name: Dependency Review
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@v5
with:
config-file: 'github/octorepo/dependency-review-config.yml@main'
external-repo-token: 'ghp_123456789abcde'
+231
View File
@@ -0,0 +1,231 @@
import {expect, test, beforeEach} from '@jest/globals'
// Mock GitHub Actions modules before importing anything else
jest.mock('@actions/github')
jest.mock('@actions/core')
// Create mocks that will be available throughout the module
const createCommentMock = jest.fn()
const updateCommentMock = jest.fn()
const listCommentsMock = jest.fn()
const paginateIteratorMock = jest.fn()
// Mock the octokit instance creation
jest.mock('@actions/github/lib/utils', () => ({
GitHub: {
plugin: jest.fn(() =>
jest.fn(() => ({
rest: {
issues: {
createComment: createCommentMock,
updateComment: updateCommentMock,
listComments: listCommentsMock
}
},
paginate: {
iterator: paginateIteratorMock
}
}))
)
},
getOctokitOptions: jest.fn(() => ({}))
}))
jest.mock('@octokit/plugin-retry', () => ({
retry: {}
}))
// Now import the modules that use the mocks
import {commentPr} from '../src/comment-pr'
import {ConfigurationOptions} from '../src/schemas'
import * as github from '@actions/github'
import * as core from '@actions/core'
const mockGithub = github as jest.Mocked<typeof github>
const mockCore = core as jest.Mocked<typeof core>
const defaultConfig: ConfigurationOptions = {
comment_summary_in_pr: 'on-failure',
fail_on_severity: 'high',
fail_on_scopes: ['runtime'],
allow_licenses: [],
deny_licenses: [],
allow_dependencies_licenses: [],
allow_ghsas: [],
license_check: true,
vulnerability_check: true,
warn_only: false,
show_openssf_scorecard: false,
warn_on_openssf_scorecard_level: 3,
retry_on_snapshot_warnings: false,
retry_on_snapshot_warnings_timeout: 120,
show_patched_versions: false,
base_ref: '',
head_ref: '',
deny_packages: [],
deny_groups: []
}
beforeEach(() => {
jest.clearAllMocks()
// Setup GitHub context
Object.defineProperty(mockGithub, 'context', {
value: {
repo: {owner: 'test-owner', repo: 'test-repo'},
payload: {pull_request: {number: 123}}
},
writable: true
})
mockCore.getInput.mockReturnValue('mock-token')
// Setup default mock returns
createCommentMock.mockResolvedValue({data: {id: 1}})
updateCommentMock.mockResolvedValue({data: {id: 1}})
listCommentsMock.mockResolvedValue({data: []})
paginateIteratorMock.mockReturnValue([{data: []}])
})
test('commentPr creates comment in always mode regardless of issues', async () => {
const config = {...defaultConfig, comment_summary_in_pr: 'always' as const}
await commentPr('Test content', config, false)
expect(createCommentMock).toHaveBeenCalledWith({
owner: 'test-owner',
repo: 'test-repo',
issue_number: 123,
body: 'Test content\n\n<!-- dependency-review-pr-comment-marker -->'
})
expect(updateCommentMock).not.toHaveBeenCalled()
})
test('commentPr creates comment in on-failure mode when issues found', async () => {
const config = {
...defaultConfig,
comment_summary_in_pr: 'on-failure' as const
}
await commentPr('Issues found', config, true)
expect(createCommentMock).toHaveBeenCalledWith({
owner: 'test-owner',
repo: 'test-repo',
issue_number: 123,
body: 'Issues found\n\n<!-- dependency-review-pr-comment-marker -->'
})
expect(updateCommentMock).not.toHaveBeenCalled()
})
test('commentPr does not comment in never mode', async () => {
const config = {...defaultConfig, comment_summary_in_pr: 'never' as const}
await commentPr('Test content', config, false)
expect(createCommentMock).not.toHaveBeenCalled()
expect(updateCommentMock).not.toHaveBeenCalled()
})
test('commentPr does not comment in on-failure mode when no issues and no existing comment', async () => {
const config = {
...defaultConfig,
comment_summary_in_pr: 'on-failure' as const
}
await commentPr('No issues', config, false)
expect(createCommentMock).not.toHaveBeenCalled()
expect(updateCommentMock).not.toHaveBeenCalled()
})
test('commentPr updates existing comment in on-failure mode when no issues but comment exists', async () => {
const config = {
...defaultConfig,
comment_summary_in_pr: 'on-failure' as const
}
// Mock existing comment
const existingComment = {
id: 456,
body: 'Previous issues\n\n<!-- dependency-review-pr-comment-marker -->'
}
paginateIteratorMock.mockReturnValue([{data: [existingComment]}])
await commentPr('Issues resolved', config, false)
expect(createCommentMock).not.toHaveBeenCalled()
expect(updateCommentMock).toHaveBeenCalledWith({
owner: 'test-owner',
repo: 'test-repo',
comment_id: 456,
body: 'Issues resolved\n\n<!-- dependency-review-pr-comment-marker -->'
})
})
test('commentPr updates existing comment instead of creating new one in always mode', async () => {
const config = {...defaultConfig, comment_summary_in_pr: 'always' as const}
// Mock existing comment
const existingComment = {
id: 789,
body: 'Old content\n\n<!-- dependency-review-pr-comment-marker -->'
}
paginateIteratorMock.mockReturnValue([{data: [existingComment]}])
await commentPr('Updated content', config, false)
expect(createCommentMock).not.toHaveBeenCalled()
expect(updateCommentMock).toHaveBeenCalledWith({
owner: 'test-owner',
repo: 'test-repo',
comment_id: 789,
body: 'Updated content\n\n<!-- dependency-review-pr-comment-marker -->'
})
})
test('commentPr finds comment marker among multiple comments', async () => {
const config = {...defaultConfig, comment_summary_in_pr: 'always' as const}
// Mock multiple comments with marker in the middle
const comments = [
{id: 1, body: 'Regular comment'},
{id: 2, body: 'Another comment'},
{
id: 3,
body: 'Target comment\n\n<!-- dependency-review-pr-comment-marker -->'
},
{id: 4, body: 'Last comment'}
]
paginateIteratorMock.mockReturnValue([{data: comments}])
await commentPr('Updated content', config, false)
expect(createCommentMock).not.toHaveBeenCalled()
expect(updateCommentMock).toHaveBeenCalledWith({
owner: 'test-owner',
repo: 'test-repo',
comment_id: 3,
body: 'Updated content\n\n<!-- dependency-review-pr-comment-marker -->'
})
})
test('commentPr handles non-PR context gracefully', async () => {
Object.defineProperty(mockGithub, 'context', {
value: {
repo: {owner: 'test-owner', repo: 'test-repo'},
payload: {}
},
writable: true
})
const config = {...defaultConfig, comment_summary_in_pr: 'always' as const}
await commentPr('Test content', config, false)
expect(mockCore.warning).toHaveBeenCalledWith(
'Not in the context of a pull request. Skipping comment creation.'
)
expect(createCommentMock).not.toHaveBeenCalled()
expect(updateCommentMock).not.toHaveBeenCalled()
})
+87
View File
@@ -696,6 +696,49 @@ test('addChangeVulnerabilitiesToSummary() - handles RestSharp GHSA-4rr6-2v9v-wcp
})
})
test('addChangeVulnerabilitiesToSummary() - handles GHSA-vc5p-v9hr-52mj maven range', async () => {
const pkg = createTestChange({
ecosystem: 'maven',
name: 'org.apache.logging.log4j:log4j-core',
version: '2.12.4',
vulnerabilities: [
createTestVulnerability({
advisory_ghsa_id: 'GHSA-vc5p-v9hr-52mj',
advisory_summary: 'Apache Log4j vulnerable to XXE in JDBC Appender',
severity: 'high'
})
]
})
// Mock API response from https://api.github.com/advisories/GHSA-vc5p-v9hr-52mj
mockOctokitRequest.mockResolvedValueOnce({
data: {
vulnerabilities: [
{
package: {
ecosystem: 'maven',
name: 'org.apache.logging.log4j:log4j-core'
},
vulnerable_version_range: '>= 2.0-beta9, < 2.25.3',
first_patched_version: '2.25.3'
}
]
}
})
const changes = [pkg]
await summary.addChangeVulnerabilitiesToSummary(changes, 'low', true)
const text = core.summary.stringify()
// Should show the correct patched version for this advisory range
expect(text).toContain('2.25.3')
expect(text).not.toContain('N/A')
expect(mockOctokitRequest).toHaveBeenCalledWith('GET /advisories/{ghsa_id}', {
ghsa_id: 'GHSA-vc5p-v9hr-52mj'
})
})
test('addChangeVulnerabilitiesToSummary() - handles version coercion for non-strict semver versions', async () => {
// Test that versions like "8.0" (without patch version) can be coerced to "8.0.0"
// for successful range matching in fail-open mode (patch selection)
@@ -778,6 +821,50 @@ test('addChangeVulnerabilitiesToSummary() - handles invalid versions in fail-ope
expect(text).toContain('N/A')
})
test('addChangeVulnerabilitiesToSummary() - handles GHSA-r9w3-57w2-gch2 go pseudo-version range', async () => {
const pkg = createTestChange({
ecosystem: 'go',
name: 'github.com/ory/hydra',
version: '2.1.0-pre.2',
vulnerabilities: [
createTestVulnerability({
advisory_ghsa_id: 'GHSA-r9w3-57w2-gch2',
advisory_summary:
'Ory Hydra has a SQL injection via forged pagination tokens',
severity: 'high'
})
]
})
// Mock API response from https://api.github.com/advisories/GHSA-r9w3-57w2-gch2
mockOctokitRequest.mockResolvedValueOnce({
data: {
vulnerabilities: [
{
package: {
ecosystem: 'go',
name: 'github.com/ory/hydra'
},
vulnerable_version_range: '< 2.3.1-0.20260320110106-0b84568fffcc',
first_patched_version: '2.3.1-0.20260320110106-0b84568fffcc'
}
]
}
})
const changes = [pkg]
await summary.addChangeVulnerabilitiesToSummary(changes, 'low', true)
const text = core.summary.stringify()
// Should show the correct patched version for this advisory range
expect(text).toContain('2.3.1-0.20260320110106-0b84568fffcc')
expect(text).not.toContain('N/A')
expect(mockOctokitRequest).toHaveBeenCalledWith('GET /advisories/{ghsa_id}', {
ghsa_id: 'GHSA-r9w3-57w2-gch2'
})
})
test('addChangeVulnerabilitiesToSummary() - respects concurrency limit for API calls', async () => {
// Create 15 packages with different vulnerabilities to test concurrency limiting
const packages = Array.from({length: 15}, (_, i) =>
+1 -1
View File
@@ -92,5 +92,5 @@ outputs:
description: Denied dependency changes (JSON)
runs:
using: 'node20'
using: 'node24'
main: 'dist/index.js'
Generated Vendored
+15844 -40290
View File
File diff suppressed because it is too large. Load diff
Generated Vendored
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC3NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACALine truncated
{"version":3,"file":"index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC3NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACALine truncated
Generated Vendored
+60 -38
View File
@@ -382,28 +382,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
@octokit/app
MIT
The MIT License
@@ -1649,7 +1627,9 @@ balanced-match
MIT
(MIT)
Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
Original code Copyright Julian Gruber <julian@juliangruber.com>
Port to TypeScript Copyright Isaac Z. Schlueter <i@izs.me>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
@@ -1906,7 +1886,9 @@ brace-expansion
MIT
MIT License
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
Copyright Julian Gruber <julian@juliangruber.com>
TypeScript port Copyright Isaac Z. Schlueter <i@izs.me>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -3436,22 +3418,62 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
minimatch
ISC
The ISC License
BlueOak-1.0.0
# Blue Oak Model License
Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
Version 1.0.0
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
## Purpose
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
This license gives everyone as much permission to work with
this software as possible, while protecting contributors
from liability.
## Acceptance
In order to receive this license, you must agree to its
rules. The rules of this license are both obligations
under that agreement and conditions to your license.
You must not do anything with this software that triggers
a rule that you cannot or will not follow.
## Copyright
Each contributor licenses you to do everything with this
software that would otherwise infringe that contributor's
copyright in it.
## Notices
You must ensure that everyone who gets a copy of
any part of this software from you, with or without
changes, also gets the text of this license or a link to
<https://blueoakcouncil.org/license/1.0.0>.
## Excuse
If anyone notifies you in writing that you have not
complied with [Notices](#notices), you can keep your
license by taking all practical steps to comply within 30
days after the notice. If you do not do so, your license
ends immediately.
## Patent
Each contributor licenses you to do everything with this
software that would otherwise infringe any patent claims
they can license or become able to license.
## Reliability
No contributor can revoke this license.
## No Liability
**_As far as the law allows, this software comes as is,
without any warranty or condition, and no contributor
will be liable to anyone for any damages related to this
software or this license, under any kind of legal claim._**
minipass
@@ -3502,7 +3524,7 @@ ms
MIT
The MIT License (MIT)
Copyright (c) 2016 Zeit, Inc.
Copyright (c) 2020 Vercel, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+11 -11
View File
@@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
```
@@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
@@ -76,7 +76,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
@@ -103,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
@@ -130,7 +130,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
@@ -155,7 +155,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
@@ -182,7 +182,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
id: review
uses: actions/dependency-review-action@v4
@@ -226,7 +226,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
@@ -265,7 +265,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
@@ -295,7 +295,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
@@ -329,7 +329,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
+922 -533
View File
File diff suppressed because it is too large. Load diff
+23 -19
View File
@@ -1,6 +1,6 @@
{
"name": "dependency-review-action",
"version": "4.9.0",
"version": "5.0.0",
"private": true,
"description": "A GitHub Action for Dependency Review",
"main": "lib/main.js",
@@ -25,43 +25,47 @@
"author": "GitHub",
"license": "MIT",
"dependencies": {
"@actions/artifact": "^5.0.1",
"@actions/artifact": "^5.0.3",
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.1",
"@octokit/plugin-retry": "^6.1.0",
"@octokit/request-error": "^5.1.1",
"@octokit/types": "12.5.0",
"@onebeyond/spdx-license-satisfies": "^1.0.1",
"ansi-styles": "^6.2.1",
"ansi-styles": "^6.2.3",
"got": "^14.4.7",
"jest": "^29.7.0",
"octokit": "^3.1.2",
"semver": "^7.7.4",
"spdx-expression-parse": "^4.0.0",
"semver": "^7.8.5",
"spdx-expression-parse": "^5.0.0",
"spdx-satisfies": "^6.0.0",
"ts-jest": "^29.4.1",
"yaml": "^2.8.1",
"ts-jest": "^29.4.12",
"yaml": "^2.9.0",
"zod": "^3.24.1"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^20",
"@types/spdx-expression-parse": "^3.0.4",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vercel/ncc": "^0.38.3",
"@types/node": "^24",
"@types/semver": "^7.8.0",
"@types/spdx-expression-parse": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^8.68.0",
"@typescript-eslint/parser": "^8.68.0",
"@vercel/ncc": "^0.45.0",
"esbuild-register": "^3.6.0",
"eslint": "^8.57.0",
"eslint-plugin-github": "^4.10.2",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-prettier": "^5.5.4",
"js-yaml": "^4.1.1",
"nodemon": "^3.1.10",
"prettier": "3.6.2",
"eslint-plugin-jest": "29.16.5",
"eslint-plugin-prettier": "^5.5.6",
"js-yaml": "^5.4.1",
"nodemon": "^3.1.14",
"prettier": "3.9.6",
"typescript": "^5.9.2"
},
"overrides": {
"cross-spawn": ">=7.0.5",
"@octokit/request-error@5.0.1": "5.1.1"
"cross-spawn": "^7.0.5",
"eslint-plugin-escompat": "3.4.0",
"@octokit/request-error@5.0.1": "5.1.1",
"undici": "^6.27.0",
"minimatch": "^9.0.7"
}
}
+19 -6
View File
@@ -20,12 +20,16 @@ export async function commentPr(
config: ConfigurationOptions,
issueFound: boolean
): Promise<void> {
if (
!(
config.comment_summary_in_pr === 'always' ||
(config.comment_summary_in_pr === 'on-failure' && issueFound)
)
) {
// For 'on-failure' mode, we need to handle both failure and success cases
// - On failure: create/update comment with issues
// - On success: update existing comment to show resolution (if one exists)
const shouldComment =
config.comment_summary_in_pr === 'always' ||
(config.comment_summary_in_pr === 'on-failure' && issueFound) ||
(config.comment_summary_in_pr === 'on-failure' &&
!issueFound &&
(await hasExistingComment()))
if (!shouldComment) {
return
}
@@ -75,6 +79,15 @@ export async function commentPr(
}
}
async function hasExistingComment(): Promise<boolean> {
if (!github.context.payload.pull_request) {
return false
}
const existingCommentId = await findCommentByMarker(COMMENT_MARKER)
return existingCommentId !== undefined
}
async function findCommentByMarker(
commentBodyIncludes: string
): Promise<number | undefined> {
+3 -4
View File
@@ -216,10 +216,9 @@ async function getRemoteConfig(configOpts: {
ref: configOpts.ref
})
// When using mediaType.format = 'raw', the response.data is a string
// but this is not reflected in the return type of getContent, so we're
// casting the return value to a string.
return z.string().parse(data as unknown)
// When using mediaType.format = 'raw', the response data is a string,
// but getContent's return type does not reflect that, so validate it here.
return z.string().parse(data)
} catch (error) {
core.debug(error as string)
throw new Error('Error fetching remote config file')
+4 -6
View File
@@ -17,9 +17,7 @@ import * as spdx from './spdx'
* @returns {Promise<{Object.<string, Array.<Change>>}} A promise to a Record Object. The keys are strings, unlicensed, unresolved and forbidden. The values are a list of changes
*/
export type InvalidLicenseChangeTypes =
| 'unlicensed'
| 'unresolved'
| 'forbidden'
'unlicensed' | 'unresolved' | 'forbidden'
export type InvalidLicenseChanges = Record<InvalidLicenseChangeTypes, Changes>
export async function getInvalidLicenseChanges(
changes: Change[],
@@ -84,7 +82,7 @@ export async function getInvalidLicenseChanges(
invalidLicenseChanges.unresolved.push(change)
}
}
} catch (err) {
} catch {
invalidLicenseChanges.unresolved.push(change)
}
}
@@ -107,7 +105,7 @@ const fetchGHLicense = async (
repo
})
return response.data.license?.spdx_id ?? null
} catch (_) {
} catch {
return null
}
}
@@ -123,7 +121,7 @@ const parseGitHubURL = (url: string): {owner: string; repo: string} | null => {
return null
}
return {owner: components[1], repo: components[2]}
} catch (_) {
} catch {
return null
}
}
+1 -1
View File
@@ -4,7 +4,7 @@ import * as core from '@actions/core'
export async function getScorecardLevels(
changes: Change[]
): Promise<Scorecard> {
const data: Scorecard = {dependencies: []} as Scorecard
const data: Scorecard = {dependencies: []}
for (const change of changes) {
const ecosystem = change.ecosystem
const packageName = change.name
+4 -4
View File
@@ -15,7 +15,7 @@ export function satisfies(candidateExpr: string, allowList: string[]): boolean {
candidateExpr = cleanInvalidSPDX(candidateExpr)
try {
return spdxSatisfies(candidateExpr, allowList)
} catch (_) {
} catch {
return false
}
}
@@ -28,7 +28,7 @@ export function satisfiesAny(
candidateExpr = cleanInvalidSPDX(candidateExpr)
try {
return spdxlib.satisfiesAny(candidateExpr, licenses)
} catch (_) {
} catch {
return false
}
}
@@ -41,7 +41,7 @@ export function satisfiesAll(
candidateExpr = cleanInvalidSPDX(candidateExpr)
try {
return spdxlib.satisfiesAll(candidateExpr, licenses)
} catch (_) {
} catch {
return false
}
}
@@ -52,7 +52,7 @@ export function isValid(spdxExpr: string): boolean {
try {
parse(spdxExpr)
return true
} catch (_) {
} catch {
return false
}
}
+23 -4
View File
@@ -74,7 +74,7 @@ function versionInRange(
// Validate version and range explicitly to enforce fail-closed semantics
// semver.satisfies() typically returns false for invalid inputs without throwing
let validVersion = semver.valid(trimmedVersion)
const validRange = semver.validRange(semverRange)
let validRange = semver.validRange(semverRange)
// For fail-open mode (patch selection), try coercing invalid versions
// to handle common real-world formats like "8.0", date-based versions, etc.
@@ -88,6 +88,26 @@ function versionInRange(
}
}
// For fail-open mode, try coercing invalid version components within the range string
// to handle formats like "2.0-beta9" which should be "2.0.0-beta9" for strict semver
if (!validRange && !failClosed) {
const coercedRangeStr = semverRange.replace(
/(?<=[><=~^\s]|^)(\d+\.\d+(?:\.\d+)?(?:-[^\s]*)?)(?=\s|$)/g,
match => {
const coerced = semver.coerce(match)
return coerced ? coerced.version : match
}
)
if (coercedRangeStr !== semverRange) {
validRange = semver.validRange(coercedRangeStr)
if (validRange) {
core.debug(
`Coerced range "${semverRange}" to "${coercedRangeStr}" for range matching`
)
}
}
}
if (!validVersion || !validRange) {
if (failClosed) {
const issues: string[] = []
@@ -115,7 +135,7 @@ function extractPatchVersionId(patchData: unknown): string | null {
// Handle object format with identifier field (for backward compatibility)
if (patchData && typeof patchData === 'object' && 'identifier' in patchData) {
const id = (patchData as {identifier: unknown}).identifier
const id = patchData.identifier
return typeof id === 'string' ? id : null
}
@@ -402,8 +422,7 @@ export async function addChangeVulnerabilitiesToSummary(
// Find matching entry by ecosystem, package name (case-insensitive), and version range
// Use pre-normalized values from cache to avoid repeated lowercasing and range conversion
let foundEntry:
| {eco: string; pkg: string; range: string; patch: string}
| undefined
{eco: string; pkg: string; range: string; patch: string} | undefined
for (const vulnEntry of advisoryEntries) {
if (vulnEntry.ecoLower !== ecoLowercase) continue
if (vulnEntry.pkgLower !== packageLowercase) continue