From e3224f7d43e2ef6f9751cf50cc4c94ddbaa54b98 Mon Sep 17 00:00:00 2001 From: Joel Rudsberg Date: Wed, 4 Dec 2024 09:10:24 +0100 Subject: [PATCH] Attempt to resolve leak v2 --- .github/workflows/test.yml | 2 +- __tests__/cleanup.test.ts | 2 +- dist/cleanup/index.js | 2 +- dist/main/index.js | 2 +- src/features/sbom.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5420af8..2c64a8b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -429,7 +429,7 @@ jobs: - uses: actions/checkout@v4 - uses: ./ with: - java-version: '24-ea' # For some reason 'latest-ea' is not found on ubuntu and macos + java-version: '24-ea' # For some reason 'latest-ea' is not found on ubuntu and macos, https://github.com/rudsberg/setup-graalvm/actions/runs/12142968278/job/33858727921 distribution: 'graalvm' native-image-enable-sbom: 'true' - name: Build Maven project and verify SBOM was generated diff --git a/__tests__/cleanup.test.ts b/__tests__/cleanup.test.ts index b43d151..9a70f2a 100644 --- a/__tests__/cleanup.test.ts +++ b/__tests__/cleanup.test.ts @@ -49,7 +49,7 @@ describe('cleanup', () => { resetState() }) - it('does not fail nor warn even when the save provess throws a ReserveCacheError', async () => { + it('does not fail nor warn even when the save process throws a ReserveCacheError', async () => { spyCacheSave.mockImplementation((paths: string[], key: string) => Promise.reject( new cache.ReserveCacheError( diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 28c32a9..5b5b007 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -91231,7 +91231,7 @@ function processSBOM() { }); } function isFeatureNotEnabled() { - return core.getInput(INPUT_NI_SBOM) === 'false'; + return core.getInput(INPUT_NI_SBOM) !== 'true'; } function findSBOMFilePath() { return __awaiter(this, void 0, void 0, function* () { diff --git a/dist/main/index.js b/dist/main/index.js index 830fbfe..96b8e92 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -92027,7 +92027,7 @@ function processSBOM() { }); } function isFeatureNotEnabled() { - return core.getInput(INPUT_NI_SBOM) === 'false'; + return core.getInput(INPUT_NI_SBOM) !== 'true'; } function findSBOMFilePath() { return __awaiter(this, void 0, void 0, function* () { diff --git a/src/features/sbom.ts b/src/features/sbom.ts index 6c3f407..e0ecb44 100644 --- a/src/features/sbom.ts +++ b/src/features/sbom.ts @@ -61,7 +61,7 @@ export async function processSBOM(): Promise { } function isFeatureNotEnabled(): boolean { - return core.getInput(INPUT_NI_SBOM) === 'false' + return core.getInput(INPUT_NI_SBOM) !== 'true' } async function findSBOMFilePath(): Promise {