Compare commits

...

34 Commits
v1.3.0 ... main

Author SHA1 Message Date
dependabot[bot]
7f61f4917e Bump eslint-import-resolver-typescript from 3.8.3 to 4.3.1
Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 3.8.3 to 4.3.1.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.8.3...v4.3.1)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-version: 4.3.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 08:57:39 +02:00
dependabot[bot]
f3662e4b72 Bump @octokit/types from 13.8.0 to 13.10.0
Bumps [@octokit/types](https://github.com/octokit/types.ts) from 13.8.0 to 13.10.0.
- [Release notes](https://github.com/octokit/types.ts/releases)
- [Commits](https://github.com/octokit/types.ts/compare/v13.8.0...v13.10.0)

---
updated-dependencies:
- dependency-name: "@octokit/types"
  dependency-version: 13.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 08:57:39 +02:00
Fabio Niephaus
b19c2851fd Update dist files. 2025-04-02 08:57:39 +02:00
dependabot[bot]
0027121302 Bump the npm-production group with 2 updates
Bumps the npm-production group with 2 updates: [@actions/cache](https://github.com/actions/toolkit/tree/HEAD/packages/cache) and [@github/dependency-submission-toolkit](https://github.com/github/dependency-submission-toolkit).


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

Updates `@github/dependency-submission-toolkit` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/github/dependency-submission-toolkit/releases)
- [Commits](https://github.com/github/dependency-submission-toolkit/compare/v2.0.4...v2.0.5)

---
updated-dependencies:
- dependency-name: "@actions/cache"
  dependency-version: 4.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-production
- dependency-name: "@github/dependency-submission-toolkit"
  dependency-version: 2.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 08:57:39 +02:00
Fabio Niephaus
0568ccefb6 Upgrade from ubuntu-20.04 to ubuntu-22.04.
Context: https://github.com/actions/runner-images/issues/11101
2025-04-02 08:50:21 +02:00
dependabot[bot]
a4c8415508 Bump the npm-development group with 11 updates
Bumps the npm-development group with 11 updates:

| Package | From | To |
| --- | --- | --- |
| [@eslint/compat](https://github.com/eslint/rewrite) | `1.2.7` | `1.2.8` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.17.22` | `20.17.30` |
| [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver) | `7.5.8` | `7.7.0` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.25.0` | `8.29.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.25.0` | `8.29.0` |
| [eslint](https://github.com/eslint/eslint) | `9.21.0` | `9.23.0` |
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | `10.0.2` | `10.1.1` |
| [eslint-plugin-jsonc](https://github.com/ota-meshi/eslint-plugin-jsonc) | `2.19.1` | `2.20.0` |
| [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) | `5.2.3` | `5.2.5` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.2.6` | `29.3.1` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.7.3` | `5.8.2` |


Updates `@eslint/compat` from 1.2.7 to 1.2.8
- [Release notes](https://github.com/eslint/rewrite/releases)
- [Changelog](https://github.com/eslint/rewrite/blob/main/release-please-config.json)
- [Commits](https://github.com/eslint/rewrite/compare/compat-v1.2.7...compat-v1.2.8)

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

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

Updates `@typescript-eslint/eslint-plugin` from 8.25.0 to 8.29.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.29.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.25.0 to 8.29.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.29.0/packages/parser)

Updates `eslint` from 9.21.0 to 9.23.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.21.0...v9.23.0)

Updates `eslint-config-prettier` from 10.0.2 to 10.1.1
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v10.0.2...v10.1.1)

Updates `eslint-plugin-jsonc` from 2.19.1 to 2.20.0
- [Release notes](https://github.com/ota-meshi/eslint-plugin-jsonc/releases)
- [Changelog](https://github.com/ota-meshi/eslint-plugin-jsonc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ota-meshi/eslint-plugin-jsonc/compare/v2.19.1...v2.20.0)

Updates `eslint-plugin-prettier` from 5.2.3 to 5.2.5
- [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.2.3...v5.2.5)

Updates `ts-jest` from 29.2.6 to 29.3.1
- [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.2.6...v29.3.1)

Updates `typescript` from 5.7.3 to 5.8.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: "@eslint/compat"
  dependency-version: 1.2.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: "@types/node"
  dependency-version: 20.17.30
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: "@types/semver"
  dependency-version: 7.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.29.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.29.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: eslint
  dependency-version: 9.23.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: eslint-config-prettier
  dependency-version: 10.1.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: eslint-plugin-jsonc
  dependency-version: 2.20.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.2.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: ts-jest
  dependency-version: 29.3.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: typescript
  dependency-version: 5.8.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 08:50:21 +02:00
Fabio Niephaus
aef1f09405 Test against GraalVM for JDK 24 and 25 EA builds. 2025-03-18 17:03:35 +01:00
Alina Yurenko
26a86e7135 add about arm runners 2025-03-04 14:57:10 +01:00
Fabio Niephaus
01ed653ac8
Bump version to 1.3.3. 2025-03-03 14:23:11 +01:00
Joel Rudsberg
3ca6fc3a8a SBOM: Ensure 'java-version' is persisted to post-run phase 2025-03-03 12:56:54 +01:00
Fabio Niephaus
271a696e78 Bump version to 1.3.2. 2025-03-03 10:22:04 +01:00
Fabio Niephaus
2063b36b79 Update dist files. 2025-03-03 09:12:04 +01:00
Fabio Niephaus
44d0c2f19b Downgrade typescript back to 5.7.3.
eslint-plugin is not yet compatible with version `5.8.2` of typescript.
2025-03-03 09:12:04 +01:00
dependabot[bot]
26e3dc36fc Bump the npm-development group across 1 directory with 10 updates
Bumps the npm-development group with 10 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@eslint/compat](https://github.com/eslint/rewrite) | `1.2.6` | `1.2.7` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.17.17` | `20.17.22` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.24.0` | `8.25.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.24.0` | `8.25.0` |
| [eslint](https://github.com/eslint/eslint) | `9.20.1` | `9.21.0` |
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | `10.0.1` | `10.0.2` |
| [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) | `3.7.0` | `3.8.3` |
| [prettier](https://github.com/prettier/prettier) | `3.5.0` | `3.5.3` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.2.5` | `29.2.6` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.7.3` | `5.8.2` |



Updates `@eslint/compat` from 1.2.6 to 1.2.7
- [Release notes](https://github.com/eslint/rewrite/releases)
- [Changelog](https://github.com/eslint/rewrite/blob/main/release-please-config.json)
- [Commits](https://github.com/eslint/rewrite/compare/compat-v1.2.6...compat-v1.2.7)

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

Updates `@typescript-eslint/eslint-plugin` from 8.24.0 to 8.25.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.25.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.24.0 to 8.25.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.25.0/packages/parser)

Updates `eslint` from 9.20.1 to 9.21.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.20.1...v9.21.0)

Updates `eslint-config-prettier` from 10.0.1 to 10.0.2
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v10.0.1...v10.0.2)

Updates `eslint-import-resolver-typescript` from 3.7.0 to 3.8.3
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.7.0...v3.8.3)

Updates `prettier` from 3.5.0 to 3.5.3
- [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.5.0...3.5.3)

Updates `ts-jest` from 29.2.5 to 29.2.6
- [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.2.5...v29.2.6)

Updates `typescript` from 5.7.3 to 5.8.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: "@eslint/compat"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 09:12:04 +01:00
Fabio Niephaus
e6854f2a7c Update dist files. 2025-03-03 09:06:06 +01:00
dependabot[bot]
a1c06b5535 Bump @octokit/plugin-paginate-rest from 9.2.1 to 9.2.2
Bumps [@octokit/plugin-paginate-rest](https://github.com/octokit/plugin-paginate-rest.js) from 9.2.1 to 9.2.2.
- [Release notes](https://github.com/octokit/plugin-paginate-rest.js/releases)
- [Commits](https://github.com/octokit/plugin-paginate-rest.js/compare/v9.2.1...v9.2.2)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-paginate-rest"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 09:06:06 +01:00
Fabio Niephaus
e4bdac3847 Update dist files. 2025-03-03 08:52:38 +01:00
dependabot[bot]
00f0f13934 Bump uuid from 11.0.5 to 11.1.0
Bumps [uuid](https://github.com/uuidjs/uuid) from 11.0.5 to 11.1.0.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v11.0.5...v11.1.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 08:52:38 +01:00
dependabot[bot]
63ca6fe724 Bump @actions/cache from 4.0.0 to 4.0.2 in the npm-production group
Bumps the npm-production group with 1 update: [@actions/cache](https://github.com/actions/toolkit/tree/HEAD/packages/cache).


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

---
updated-dependencies:
- dependency-name: "@actions/cache"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 08:52:38 +01:00
dependabot[bot]
5b85983c0a Bump @octokit/request from 8.4.0 to 8.4.1
Bumps [@octokit/request](https://github.com/octokit/request.js) from 8.4.0 to 8.4.1.
- [Release notes](https://github.com/octokit/request.js/releases)
- [Commits](https://github.com/octokit/request.js/compare/v8.4.0...v8.4.1)

---
updated-dependencies:
- dependency-name: "@octokit/request"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 08:52:38 +01:00
Fabio Niephaus
f4c22e2c3f Update dist files. 2025-02-17 10:50:53 +01:00
dependabot[bot]
2ea5788b37 Bump @octokit/endpoint from 9.0.5 to 9.0.6
Bumps [@octokit/endpoint](https://github.com/octokit/endpoint.js) from 9.0.5 to 9.0.6.
- [Release notes](https://github.com/octokit/endpoint.js/releases)
- [Commits](https://github.com/octokit/endpoint.js/compare/v9.0.5...v9.0.6)

---
updated-dependencies:
- dependency-name: "@octokit/endpoint"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-17 10:50:53 +01:00
Fabio Niephaus
b5709ab80d Run SBOM test on ubuntu-22.04-arm. 2025-02-17 10:43:44 +01:00
Fabio Niephaus
6e1c9cebb5 Update dist files. 2025-02-17 10:43:44 +01:00
dependabot[bot]
601e3a4caa Bump @octokit/request-error from 5.1.0 to 5.1.1
Bumps [@octokit/request-error](https://github.com/octokit/request-error.js) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/octokit/request-error.js/releases)
- [Commits](https://github.com/octokit/request-error.js/compare/v5.1.0...v5.1.1)

---
updated-dependencies:
- dependency-name: "@octokit/request-error"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-17 10:43:44 +01:00
Fabio Niephaus
b0cb26a8da Bump version to 1.3.1. 2025-02-12 21:31:35 +01:00
Fabio Niephaus
30b157ff45 Ensure cache: 'maven' is tested. 2025-02-12 21:31:35 +01:00
Fabio Niephaus
0f761465f7 Convert back to CJS and use ncc. 2025-02-12 21:31:35 +01:00
Fabio Niephaus
f07b5bfaef Update dist files. 2025-02-12 14:38:09 +01:00
dependabot[bot]
fcc01ed19b Bump semver from 7.6.3 to 7.7.1
Dependabot couldn't find the original pull request head commit, d99c250780f60ae25820f76a799d34572762727f.
2025-02-12 14:38:09 +01:00
dependabot[bot]
c65e623881 Bump @octokit/types from 12.6.0 to 13.8.0
Bumps [@octokit/types](https://github.com/octokit/types.ts) from 12.6.0 to 13.8.0.
- [Release notes](https://github.com/octokit/types.ts/releases)
- [Commits](https://github.com/octokit/types.ts/compare/v12.6.0...v13.8.0)

---
updated-dependencies:
- dependency-name: "@octokit/types"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-12 14:23:45 +01:00
dependabot[bot]
3040d71541 Bump eslint-config-prettier from 9.1.0 to 10.0.1
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 9.1.0 to 10.0.1.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.0.1)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-12 14:19:07 +01:00
Fabio Niephaus
70a5974953 Fix PASSES_GDS_TOKEN_CHECK. 2025-02-12 12:55:33 +01:00
dependabot[bot]
aa331906a0 Bump the npm-development group with 5 updates
Bumps the npm-development group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.17.14` | `20.17.17` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.22.0` | `8.24.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.22.0` | `8.24.0` |
| [eslint](https://github.com/eslint/eslint) | `9.19.0` | `9.20.1` |
| [prettier](https://github.com/prettier/prettier) | `3.4.2` | `3.5.0` |


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

Updates `@typescript-eslint/eslint-plugin` from 8.22.0 to 8.24.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.24.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.22.0 to 8.24.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.24.0/packages/parser)

Updates `eslint` from 9.19.0 to 9.20.1
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.19.0...v9.20.1)

Updates `prettier` from 3.4.2 to 3.5.0
- [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.4.2...3.5.0)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-12 12:55:33 +01:00
29 changed files with 130483 additions and 124480 deletions

View File

@ -41,7 +41,7 @@ jobs:
PASSES_GDS_TOKEN_CHECK: ${{ !matrix.set-gds-token || secrets.GDS_TOKEN != '' }} PASSES_GDS_TOKEN_CHECK: ${{ !matrix.set-gds-token || secrets.GDS_TOKEN != '' }}
strategy: strategy:
matrix: matrix:
java-version: ['23', '21', '17', '20', 'dev'] java-version: ['24', '21', '17', '20', 'dev']
distribution: ['graalvm', 'graalvm-community'] distribution: ['graalvm', 'graalvm-community']
os: [ os: [
ubuntu-latest, # Linux on Intel ubuntu-latest, # Linux on Intel
@ -56,7 +56,7 @@ jobs:
- java-version: 'latest-ea' - java-version: 'latest-ea'
distribution: 'graalvm' distribution: 'graalvm'
os: ubuntu-latest os: ubuntu-latest
- java-version: '24-ea' - java-version: '25-ea'
distribution: 'graalvm' distribution: 'graalvm'
os: ubuntu-latest os: ubuntu-latest
- java-version: '21' - java-version: '21'
@ -90,7 +90,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
components: ${{ matrix.components }} components: ${{ matrix.components }}
gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }} gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }}
if: env.PASSES_GDS_TOKEN_CHECK if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' }}
- name: Check environment - name: Check environment
run: | run: |
echo "GRAALVM_HOME: $GRAALVM_HOME" echo "GRAALVM_HOME: $GRAALVM_HOME"
@ -103,14 +103,14 @@ jobs:
java --version java --version
java --version | grep "GraalVM" || exit 34 java --version | grep "GraalVM" || exit 34
native-image --version native-image --version
if: runner.os != 'Windows' && env.PASSES_GDS_TOKEN_CHECK if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' && runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
run: | run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME" echo "JAVA_HOME: $env:JAVA_HOME"
java --version java --version
native-image --version native-image --version
if: runner.os == 'Windows' && env.PASSES_GDS_TOKEN_CHECK if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' && runner.os == 'Windows' }}
test-action-ce: # make sure the action works on a clean machine without building test-action-ce: # make sure the action works on a clean machine without building
needs: test-action needs: test-action
@ -131,7 +131,7 @@ jobs:
- version: '22.2.0' # for update notifications - version: '22.2.0' # for update notifications
java-version: '17' java-version: '17'
components: 'native-image' components: 'native-image'
os: ubuntu-20.04 os: ubuntu-22.04
- version: '21.2.0' - version: '21.2.0'
java-version: '8' # for JDK 8 notification java-version: '8' # for JDK 8 notification
components: 'native-image' components: 'native-image'
@ -172,7 +172,7 @@ jobs:
if [[ "${{ matrix.java-version }}" != "dev" ]]; then if [[ "${{ matrix.java-version }}" != "dev" ]]; then
gu list gu list
fi fi
if: runner.os != 'Windows' if: ${{ runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
run: | run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "GRAALVM_HOME: $env:GRAALVM_HOME"
@ -180,13 +180,16 @@ jobs:
java -version java -version
native-image --version native-image --version
gu.cmd remove native-image gu.cmd remove native-image
if: runner.os == 'Windows' if: ${{ runner.os == 'Windows' }}
test-action-ee: test-action-ee:
needs: test-action needs: test-action
name: EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }} name: EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env:
# Skip builds that require a GDS token but have no access to one (e.g., secrets are unavailable in PR runs)
PASSES_GDS_TOKEN_CHECK: ${{ secrets.GDS_TOKEN != '' }}
strategy: strategy:
matrix: matrix:
version: ['latest'] version: ['latest']
@ -212,6 +215,7 @@ jobs:
java-version: ${{ matrix.java-version }} java-version: ${{ matrix.java-version }}
components: ${{ matrix.components }} components: ${{ matrix.components }}
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' }}
- name: Check environment - name: Check environment
run: | run: |
echo "GRAALVM_HOME: $GRAALVM_HOME" echo "GRAALVM_HOME: $GRAALVM_HOME"
@ -221,7 +225,7 @@ jobs:
java --version | grep -e "GraalVM EE" -e "Oracle GraalVM" || exit 23 java --version | grep -e "GraalVM EE" -e "Oracle GraalVM" || exit 23
native-image --version native-image --version
gu list gu list
if: runner.os != 'Windows' if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' && runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
run: | run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "GRAALVM_HOME: $env:GRAALVM_HOME"
@ -229,7 +233,7 @@ jobs:
java --version java --version
native-image --version native-image --version
gu.cmd remove native-image gu.cmd remove native-image
if: runner.os == 'Windows' if: ${{ env.PASSES_GDS_TOKEN_CHECK == 'true' && runner.os == 'Windows' }}
test-action-mandrel: test-action-mandrel:
needs: test-action needs: test-action
@ -267,14 +271,14 @@ jobs:
java --version java --version
java --version | grep "Temurin" || exit 23 java --version | grep "Temurin" || exit 23
native-image --version native-image --version
if: runner.os != 'Windows' if: ${{ runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
run: | run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME" echo "JAVA_HOME: $env:JAVA_HOME"
java --version java --version
native-image --version native-image --version
if: runner.os == 'Windows' if: ${{ runner.os == 'Windows' }}
test-action-liberica: test-action-liberica:
needs: test-action needs: test-action
@ -303,7 +307,7 @@ jobs:
java --version | fgrep -qw ${{ matrix.java-version }} || exit 23 java --version | fgrep -qw ${{ matrix.java-version }} || exit 23
native-image --version native-image --version
native-image --version | fgrep -qw ${{ matrix.java-version }} || exit 24 native-image --version | fgrep -qw ${{ matrix.java-version }} || exit 24
if: runner.os != 'Windows' if: ${{ runner.os != 'Windows' }}
- name: Check Windows environment - name: Check Windows environment
shell: pwsh shell: pwsh
run: | run: |
@ -317,7 +321,7 @@ jobs:
if (!(native-image --version | findstr \<${{ matrix.java-version }}\>)) { if (!(native-image --version | findstr \<${{ matrix.java-version }}\>)) {
exit 24 exit 24
} }
if: runner.os == 'Windows' if: ${{ runner.os == 'Windows' }}
test-action-native-image-windows: test-action-native-image-windows:
name: native-image on windows-latest name: native-image on windows-latest
@ -454,7 +458,7 @@ jobs:
matrix: matrix:
java-version: ['24-ea', 'latest-ea'] java-version: ['24-ea', 'latest-ea']
distribution: ['graalvm'] distribution: ['graalvm']
os: [macos-latest, windows-latest, ubuntu-latest] os: [macos-latest, windows-latest, ubuntu-latest, ubuntu-22.04-arm]
components: [''] components: ['']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -466,17 +470,18 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
components: ${{ matrix.components }} components: ${{ matrix.components }}
native-image-enable-sbom: 'true' native-image-enable-sbom: 'true'
cache: 'maven'
- name: Build Maven project and verify that SBOM was generated and its contents - name: Build Maven project and verify that SBOM was generated and its contents
run: | run: |
cd __tests__/sbom/main-test-app cd __tests__/sbom/main-test-app
mvn --no-transfer-progress -Pnative package mvn --no-transfer-progress -Pnative package
bash verify-sbom.sh bash verify-sbom.sh
shell: bash shell: bash
if: runner.os != 'Windows' if: ${{ runner.os != 'Windows' }}
- name: Build Maven project and verify that SBOM was generated and its contents (Windows) - name: Build Maven project and verify that SBOM was generated and its contents (Windows)
run: | run: |
cd __tests__\sbom\main-test-app cd __tests__\sbom\main-test-app
mvn --no-transfer-progress -Pnative package mvn --no-transfer-progress -Pnative package
cmd /c verify-sbom.cmd cmd /c verify-sbom.cmd
shell: cmd shell: cmd
if: runner.os == 'Windows' if: ${{ runner.os == 'Windows' }}

View File

@ -9,7 +9,7 @@ This action:
- exports a `$GRAALVM_HOME` environment variable - exports a `$GRAALVM_HOME` environment variable
- adds `$GRAALVM_HOME/bin` to the `$PATH` environment variable<br>(Native Image, Truffle languages, and tools can be invoked directly) - adds `$GRAALVM_HOME/bin` to the `$PATH` environment variable<br>(Native Image, Truffle languages, and tools can be invoked directly)
- sets `$JAVA_HOME` to `$GRAALVM_HOME` by default<br>(can be disabled via `set-java-home: 'false'`, see [Options](#options)) - sets `$JAVA_HOME` to `$GRAALVM_HOME` by default<br>(can be disabled via `set-java-home: 'false'`, see [Options](#options))
- supports `x64` and `aarch64` (selected automatically, `aarch64` requires a [self-hosted runner][gha-self-hosted-runners]) - supports `x64` and `aarch64/arm64` (see how to use [Linux arm64 runners](https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/))
- supports dependency caching for Apache Maven, Gradle, and sbt (see [`cache` option](#options)) - supports dependency caching for Apache Maven, Gradle, and sbt (see [`cache` option](#options))
- sets up Windows environments with build tools using [vcvarsall.bat][vcvarsall] - sets up Windows environments with build tools using [vcvarsall.bat][vcvarsall]
- has built-in support for GraalVM components and the [GraalVM Updater][gu] - has built-in support for GraalVM components and the [GraalVM Updater][gu]

View File

@ -145,6 +145,7 @@ describe('sbom feature', () => {
writeFileSync(sbomPath, JSON.stringify(sbom, null, 2)) writeFileSync(sbomPath, JSON.stringify(sbom, null, 2))
mockFindSBOM([sbomPath]) mockFindSBOM([sbomPath])
jest.spyOn(core, 'getState').mockReturnValue(javaVersion)
await processSBOM() await processSBOM()
} }
@ -190,6 +191,10 @@ describe('sbom feature', () => {
] ]
} }
it('should throw an error if setUpSBOMSupport was not called before processSBOM', async () => {
await expect(processSBOM()).rejects.toThrow('setUpSBOMSupport must be called before processSBOM')
})
it('should process SBOM and display components', async () => { it('should process SBOM and display components', async () => {
await setUpAndProcessSBOM(sampleSBOM) await setUpAndProcessSBOM(sampleSBOM)

View File

@ -72,6 +72,6 @@ outputs:
description: 'A boolean value to indicate an exact match was found for the primary key' description: 'A boolean value to indicate an exact match was found for the primary key'
runs: runs:
using: 'node20' using: 'node20'
main: 'dist/main.js' main: 'dist/main/index.js'
post: 'dist/cleanup.js' post: 'dist/cleanup/index.js'
post-if: 'success()' post-if: 'success()'

1
dist/cleanup.js.map generated vendored

File diff suppressed because one or more lines are too long

126612
dist/main.js → dist/cleanup/index.js generated vendored

File diff suppressed because one or more lines are too long

1
dist/main.js.map generated vendored

File diff suppressed because one or more lines are too long

125351
dist/cleanup.js → dist/main/index.js generated vendored

File diff suppressed because one or more lines are too long

View File

@ -1,29 +1,14 @@
// See: https://jestjs.io/docs/configuration module.exports = {
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
clearMocks: true, clearMocks: true,
collectCoverage: true, collectCoverage: true,
collectCoverageFrom: ['./src/**'], collectCoverageFrom: ['./src/**'],
coverageDirectory: './coverage', coverageDirectory: './coverage',
coveragePathIgnorePatterns: ['/node_modules/', '/dist/'], coveragePathIgnorePatterns: ['/node_modules/', '/dist/'],
coverageReporters: ['json-summary', 'text', 'lcov'], coverageReporters: ['json-summary', 'text', 'lcov'],
extensionsToTreatAsEsm: ['.ts'], moduleFileExtensions: ['js', 'ts'],
moduleFileExtensions: ['ts', 'js'],
preset: 'ts-jest',
reporters: ['default'],
resolver: 'ts-jest-resolver',
testEnvironment: 'node',
testMatch: ['**/*.test.ts'], testMatch: ['**/*.test.ts'],
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
transform: { transform: {
'^.+\\.ts$': [ '^.+\\.ts$': 'ts-jest'
'ts-jest',
{
tsconfig: 'tsconfig.eslint.json',
useESM: true
}
]
}, },
verbose: true verbose: true
} }

2716
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -2,8 +2,7 @@
"name": "setup-graalvm", "name": "setup-graalvm",
"author": "GraalVM Community", "author": "GraalVM Community",
"description": "GitHub Action for GraalVM", "description": "GitHub Action for GraalVM",
"version": "1.3.0", "version": "1.3.3",
"type": "module",
"private": true, "private": true,
"repository": { "repository": {
"type": "git", "type": "git",
@ -27,14 +26,14 @@
"format:check": "npx prettier --check .", "format:check": "npx prettier --check .",
"lint": "npx eslint .", "lint": "npx eslint .",
"package": "npm run package:main && npm run package:cleanup", "package": "npm run package:main && npm run package:cleanup",
"package:main": "npx rollup --config rollup.main.config.ts --configPlugin @rollup/plugin-typescript", "package:main": "npx ncc build src/main.ts -o dist/main",
"package:cleanup": "npx rollup --config rollup.cleanup.config.ts --configPlugin @rollup/plugin-typescript", "package:cleanup": "npx ncc build src/cleanup.ts -o dist/cleanup",
"test": "npx jest", "test": "npx jest",
"all": "npm run format:write && npm run lint && npm run test && npm run package" "all": "npm run format:write && npm run lint && npm run test && npm run package"
}, },
"license": "UPL", "license": "UPL",
"dependencies": { "dependencies": {
"@actions/cache": "^4.0.0", "@actions/cache": "^4.0.3",
"@actions/core": "^1.11.1", "@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1", "@actions/exec": "^1.1.1",
"@actions/github": "^6.0.0", "@actions/github": "^6.0.0",
@ -43,42 +42,34 @@
"@actions/io": "^1.1.3", "@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.2", "@actions/tool-cache": "^2.0.2",
"@octokit/core": "^5.2.0", "@octokit/core": "^5.2.0",
"@octokit/types": "^12.6.0", "@octokit/types": "^13.10.0",
"@github/dependency-submission-toolkit": "^2.0.4", "@github/dependency-submission-toolkit": "^2.0.5",
"semver": "^7.6.3", "semver": "^7.7.1",
"uuid": "^11.0.5" "uuid": "^11.1.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint/compat": "^1.2.6", "@eslint/compat": "^1.2.8",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-typescript": "^12.1.1",
"@types/jest": "^29.5.14", "@types/jest": "^29.5.14",
"@types/node": "^20.17.12", "@types/node": "^20.17.30",
"@types/semver": "^7.5.8", "@types/semver": "^7.7.0",
"@types/uuid": "^10.0.0", "@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.22.0", "@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.22.0", "@typescript-eslint/parser": "^8.29.0",
"eslint": "^9.19.0", "@vercel/ncc": "^0.38.3",
"eslint-config-prettier": "^9.1.0", "eslint": "^9.23.0",
"eslint-import-resolver-typescript": "^3.6.3", "eslint-config-prettier": "^10.1.1",
"eslint-import-resolver-typescript": "^4.3.1",
"eslint-plugin-import": "^2.31.0", "eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.10.0", "eslint-plugin-jest": "^28.10.0",
"eslint-plugin-jsonc": "^2.19.1", "eslint-plugin-jsonc": "^2.20.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.3", "eslint-plugin-prettier": "^5.2.5",
"jest": "^29.7.0", "jest": "^29.7.0",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"prettier": "^3.4.2", "prettier": "^3.5.3",
"prettier-eslint": "^16.3.0", "prettier-eslint": "^16.3.0",
"rollup": "^4.34.1", "ts-jest": "^29.3.1",
"ts-jest": "^29.2.5",
"ts-jest-resolver": "^2.0.1",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "^5.7.3" "typescript": "^5.8.2"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "*"
} }
} }

View File

@ -1,19 +0,0 @@
// See: https://rollupjs.org/introduction/
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import nodeResolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
const config = {
input: 'src/cleanup.ts',
output: {
esModule: true,
file: 'dist/cleanup.js',
format: 'es',
sourcemap: true
},
plugins: [typescript(), nodeResolve(), commonjs(), json()]
}
export default config

View File

@ -1,19 +0,0 @@
// See: https://rollupjs.org/introduction/
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import nodeResolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
const config = {
input: 'src/main.ts',
output: {
esModule: true,
file: 'dist/main.js',
format: 'es',
sourcemap: true
},
plugins: [typescript(), nodeResolve(), commonjs(), json()]
}
export default config

View File

@ -25,10 +25,10 @@
*/ */
import * as core from '@actions/core' import * as core from '@actions/core'
import * as constants from './constants.js' import * as constants from './constants'
import { save } from './features/cache.js' import { save } from './features/cache'
import { generateReports } from './features/reports.js' import { generateReports } from './features/reports'
import { processSBOM } from './features/sbom.js' import { processSBOM } from './features/sbom'
/** /**
* Check given input and run a save process for the specified package manager * Check given input and run a save process for the specified package manager

View File

@ -1,6 +1,6 @@
import * as otypes from '@octokit/types' import * as otypes from '@octokit/types'
export const ACTION_VERSION = '1.3.0' export const ACTION_VERSION = '1.3.3'
export const INPUT_VERSION = 'version' export const INPUT_VERSION = 'version'
export const INPUT_GDS_TOKEN = 'gds-token' export const INPUT_GDS_TOKEN = 'gds-token'

View File

@ -1,6 +1,6 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import { GRAALVM_PLATFORM } from './constants.js' import { GRAALVM_PLATFORM } from './constants'
import { exec } from './utils.js' import { exec } from './utils'
const APT_GET_INSTALL_BASE = 'sudo apt-get -y --no-upgrade install' const APT_GET_INSTALL_BASE = 'sudo apt-get -y --no-upgrade install'
const COMPONENT_TO_DEPS = new Map<string, Map<string, string>>([ const COMPONENT_TO_DEPS = new Map<string, Map<string, string>>([

View File

@ -1,7 +1,7 @@
import * as c from '../constants.js' import * as c from '../constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as tc from '@actions/tool-cache' import * as tc from '@actions/tool-cache'
import { exec } from '../utils.js' import { exec } from '../utils'
import { join } from 'path' import { join } from 'path'
const MUSL_NAME = 'x86_64-linux-musl-native' const MUSL_NAME = 'x86_64-linux-musl-native'

View File

@ -1,4 +1,4 @@
import * as c from '../constants.js' import * as c from '../constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as fs from 'fs' import * as fs from 'fs'
import * as github from '@actions/github' import * as github from '@actions/github'
@ -11,7 +11,7 @@ import {
updatePRComment, updatePRComment,
tmpfile, tmpfile,
setNativeImageOption setNativeImageOption
} from '../utils.js' } from '../utils'
const BUILD_OUTPUT_JSON_PATH = tmpfile('native-image-build-output.json') const BUILD_OUTPUT_JSON_PATH = tmpfile('native-image-build-output.json')
const BYTES_TO_KiB = 1024 const BYTES_TO_KiB = 1024

View File

@ -1,17 +1,16 @@
import * as c from '../constants.js' import * as c from '../constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as fs from 'fs' import * as fs from 'fs'
import * as github from '@actions/github' import * as github from '@actions/github'
import * as glob from '@actions/glob' import * as glob from '@actions/glob'
import { basename } from 'path' import { basename } from 'path'
import * as semver from 'semver' import * as semver from 'semver'
import { setNativeImageOption } from '../utils.js' import { setNativeImageOption } from '../utils'
const INPUT_NI_SBOM = 'native-image-enable-sbom' const INPUT_NI_SBOM = 'native-image-enable-sbom'
const SBOM_FILE_SUFFIX = '.sbom.json' const SBOM_FILE_SUFFIX = '.sbom.json'
const MIN_JAVA_VERSION = '24.0.0' const MIN_JAVA_VERSION = '24.0.0'
const javaVersionKey = 'javaVersionKey'
let javaVersionOrLatestEA: string | null = null
interface SBOM { interface SBOM {
components: Component[] components: Component[]
@ -67,36 +66,36 @@ interface DependencySnapshot {
> >
} }
export function setUpSBOMSupport(javaVersionOrDev: string, distribution: string): void { export function setUpSBOMSupport(javaVersion: string, distribution: string): void {
if (!isFeatureEnabled()) { if (!isFeatureEnabled()) {
return return
} }
validateJavaVersionAndDistribution(javaVersionOrDev, distribution) validateJavaVersionAndDistribution(javaVersion, distribution)
javaVersionOrLatestEA = javaVersionOrDev core.saveState(javaVersionKey, javaVersion)
setNativeImageOption(javaVersionOrLatestEA, '--enable-sbom=export') setNativeImageOption(javaVersion, '--enable-sbom=export')
core.info('Enabled SBOM generation for Native Image build') core.info('Enabled SBOM generation for Native Image build')
} }
function validateJavaVersionAndDistribution(javaVersionOrDev: string, distribution: string): void { function validateJavaVersionAndDistribution(javaVersion: string, distribution: string): void {
if (distribution !== c.DISTRIBUTION_GRAALVM) { if (distribution !== c.DISTRIBUTION_GRAALVM) {
throw new Error( throw new Error(
`The '${INPUT_NI_SBOM}' option is only supported for Oracle GraalVM (distribution '${c.DISTRIBUTION_GRAALVM}'), but found distribution '${distribution}'.` `The '${INPUT_NI_SBOM}' option is only supported for Oracle GraalVM (distribution '${c.DISTRIBUTION_GRAALVM}'), but found distribution '${distribution}'.`
) )
} }
if (javaVersionOrDev === 'dev') { if (javaVersion === 'dev') {
throw new Error(`The '${INPUT_NI_SBOM}' option is not supported for java-version 'dev'.`) throw new Error(`The '${INPUT_NI_SBOM}' option is not supported for java-version 'dev'.`)
} }
if (javaVersionOrDev === 'latest-ea') { if (javaVersion === 'latest-ea') {
return return
} }
const coercedJavaVersion = semver.coerce(javaVersionOrDev) const coercedJavaVersion = semver.coerce(javaVersion)
if (!coercedJavaVersion || semver.gt(MIN_JAVA_VERSION, coercedJavaVersion)) { if (!coercedJavaVersion || semver.gt(MIN_JAVA_VERSION, coercedJavaVersion)) {
throw new Error( throw new Error(
`The '${INPUT_NI_SBOM}' option is only supported for GraalVM for JDK ${MIN_JAVA_VERSION} or later, but found java-version '${javaVersionOrDev}'.` `The '${INPUT_NI_SBOM}' option is only supported for GraalVM for JDK ${MIN_JAVA_VERSION} or later, but found java-version '${javaVersion}'.`
) )
} }
} }
@ -106,7 +105,8 @@ export async function processSBOM(): Promise<void> {
return return
} }
if (javaVersionOrLatestEA === null) { const javaVersion = core.getState(javaVersionKey)
if (!javaVersion) {
throw new Error('setUpSBOMSupport must be called before processSBOM') throw new Error('setUpSBOMSupport must be called before processSBOM')
} }
@ -116,7 +116,7 @@ export async function processSBOM(): Promise<void> {
const sbomData = parseSBOM(sbomContent) const sbomData = parseSBOM(sbomContent)
const components = mapToComponentsWithDependencies(sbomData) const components = mapToComponentsWithDependencies(sbomData)
printSBOMContent(components) printSBOMContent(components)
const snapshot = convertSBOMToSnapshot(sbomPath, components) const snapshot = convertSBOMToSnapshot(javaVersion, sbomPath, components)
await submitDependencySnapshot(snapshot) await submitDependencySnapshot(snapshot)
} catch (error) { } catch (error) {
throw new Error( throw new Error(
@ -184,7 +184,7 @@ function printSBOMContent(components: Component[]): void {
core.info('==================') core.info('==================')
} }
function convertSBOMToSnapshot(sbomPath: string, components: Component[]): DependencySnapshot { function convertSBOMToSnapshot(javaVersion: string, sbomPath: string, components: Component[]): DependencySnapshot {
const context = github.context const context = github.context
const sbomFileName = basename(sbomPath) const sbomFileName = basename(sbomPath)
@ -203,7 +203,7 @@ function convertSBOMToSnapshot(sbomPath: string, components: Component[]): Depen
}, },
detector: { detector: {
name: 'Oracle GraalVM', name: 'Oracle GraalVM',
version: javaVersionOrLatestEA ?? '', version: javaVersion,
url: 'https://www.graalvm.org/' url: 'https://www.graalvm.org/'
}, },
scanned: new Date().toISOString(), scanned: new Date().toISOString(),

View File

@ -1,4 +1,4 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as fs from 'fs' import * as fs from 'fs'
import * as httpClient from '@actions/http-client' import * as httpClient from '@actions/http-client'
@ -8,8 +8,8 @@ import * as stream from 'stream'
import * as util from 'util' import * as util from 'util'
import * as semver from 'semver' import * as semver from 'semver'
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http' import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http'
import { RetryHelper } from '@actions/tool-cache/lib/retry-helper.js' import { RetryHelper } from '@actions/tool-cache/lib/retry-helper'
import { calculateSHA256 } from './utils.js' import { calculateSHA256 } from './utils'
import { ok } from 'assert' import { ok } from 'assert'
import { v4 as uuidv4 } from 'uuid' import { v4 as uuidv4 } from 'uuid'

View File

@ -1,4 +1,4 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as semver from 'semver' import * as semver from 'semver'
import { import {
@ -8,8 +8,8 @@ import {
getLatestRelease, getLatestRelease,
getMatchingTags, getMatchingTags,
getTaggedRelease getTaggedRelease
} from './utils.js' } from './utils'
import { downloadGraalVM, downloadGraalVMEELegacy } from './gds.js' import { downloadGraalVM, downloadGraalVMEELegacy } from './gds'
import { downloadTool } from '@actions/tool-cache' import { downloadTool } from '@actions/tool-cache'
import { basename } from 'path' import { basename } from 'path'

View File

@ -1,8 +1,8 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as semver from 'semver' import * as semver from 'semver'
import { GRAALVM_PLATFORM } from './constants.js' import { GRAALVM_PLATFORM } from './constants'
import { exec } from './utils.js' import { exec } from './utils'
import { join } from 'path' import { join } from 'path'
const BASE_FLAGS = ['--non-interactive', 'install', '--no-progress'] const BASE_FLAGS = ['--non-interactive', 'install', '--no-progress']

View File

@ -1,6 +1,6 @@
import * as c from './constants.js' import * as c from './constants'
import * as semver from 'semver' import * as semver from 'semver'
import { downloadExtractAndCacheJDK, getTaggedRelease, getMatchingTags } from './utils.js' import { downloadExtractAndCacheJDK, getTaggedRelease, getMatchingTags } from './utils'
import { downloadTool } from '@actions/tool-cache' import { downloadTool } from '@actions/tool-cache'
import { spawnSync } from 'child_process' import { spawnSync } from 'child_process'

View File

@ -1,20 +1,20 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as graalvm from './graalvm.js' import * as graalvm from './graalvm'
import * as semver from 'semver' import * as semver from 'semver'
import { isFeatureAvailable as isCacheAvailable } from '@actions/cache' import { isFeatureAvailable as isCacheAvailable } from '@actions/cache'
import { basename, join } from 'path' import { basename, join } from 'path'
import { restore } from './features/cache.js' import { restore } from './features/cache'
import { setUpDependencies } from './dependencies.js' import { setUpDependencies } from './dependencies'
import { setUpGUComponents } from './gu.js' import { setUpGUComponents } from './gu'
import { setUpMandrel } from './mandrel.js' import { setUpMandrel } from './mandrel'
import { setUpLiberica } from './liberica.js' import { setUpLiberica } from './liberica'
import { checkForUpdates } from './features/check-for-updates.js' import { checkForUpdates } from './features/check-for-updates'
import { setUpNativeImageMusl } from './features/musl.js' import { setUpNativeImageMusl } from './features/musl'
import { setUpWindowsEnvironment } from './msvc.js' import { setUpWindowsEnvironment } from './msvc'
import { setUpNativeImageBuildReports } from './features/reports.js' import { setUpNativeImageBuildReports } from './features/reports'
import { exec } from '@actions/exec' import { exec } from '@actions/exec'
import { setUpSBOMSupport } from './features/sbom.js' import { setUpSBOMSupport } from './features/sbom'
async function run(): Promise<void> { async function run(): Promise<void> {
try { try {

View File

@ -1,6 +1,6 @@
import * as c from './constants.js' import * as c from './constants'
import * as httpClient from '@actions/http-client' import * as httpClient from '@actions/http-client'
import { downloadExtractAndCacheJDK } from './utils.js' import { downloadExtractAndCacheJDK } from './utils'
import { downloadTool } from '@actions/tool-cache' import { downloadTool } from '@actions/tool-cache'
import { basename } from 'path' import { basename } from 'path'

View File

@ -1,7 +1,7 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import { execSync } from 'child_process' import { execSync } from 'child_process'
import { existsSync } from 'fs' import { existsSync } from 'fs'
import { VERSION_DEV } from './constants.js' import { VERSION_DEV } from './constants'
// Keep in sync with https://github.com/actions/virtual-environments // Keep in sync with https://github.com/actions/virtual-environments
const KNOWN_VISUAL_STUDIO_INSTALLATIONS = [ const KNOWN_VISUAL_STUDIO_INSTALLATIONS = [

View File

@ -1,4 +1,4 @@
import * as c from './constants.js' import * as c from './constants'
import * as core from '@actions/core' import * as core from '@actions/core'
import * as github from '@actions/github' import * as github from '@actions/github'
import * as httpClient from '@actions/http-client' import * as httpClient from '@actions/http-client'

View File

@ -15,6 +15,7 @@
"noUnusedParameters": false, "noUnusedParameters": false,
"pretty": true, "pretty": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"sourceMap": true,
"strict": true, "strict": true,
"strictNullChecks": true, "strictNullChecks": true,
"target": "ES2022" "target": "ES2022"

View File

@ -6,12 +6,5 @@
"noEmit": true "noEmit": true
}, },
"exclude": ["dist", "node_modules"], "exclude": ["dist", "node_modules"],
"include": [ "include": ["__tests__", "src", "eslint.config.mjs", "jest.config.js"]
"__tests__",
"src",
"eslint.config.mjs",
"jest.config.js",
"rollup.cleanup.config.ts",
"rollup.main.config.ts"
]
} }