diff --git a/dist/index.js b/dist/index.js index df821370..1e632f04 100644 --- a/dist/index.js +++ b/dist/index.js @@ -74,7 +74,7 @@ function sourceInput() { if (multipleDefined(image, path, sbom)) { throw new Error( - "The following options are mutually exclusive: image, path, sbom" + "The following options are mutually exclusive: image, path, sbom", ); } @@ -150,7 +150,7 @@ async function runScan({ env.GRYPE_REGISTRY_AUTH_PASSWORD = registryPass; if (!registryUser || !registryPass) { core.warning( - "WARNING: registry-username and registry-password must be specified together" + "WARNING: registry-username and registry-password must be specified together", ); } } @@ -174,22 +174,22 @@ async function runScan({ !SEVERITY_LIST.some( (item) => typeof severityCutoff.toLowerCase() === "string" && - item === severityCutoff.toLowerCase() + item === severityCutoff.toLowerCase(), ) ) { throw new Error( - `Invalid severity-cutoff value is set to ${severityCutoff} - please ensure you are choosing either negligible, low, medium, high, or critical` + `Invalid severity-cutoff value is set to ${severityCutoff} - please ensure you are choosing either negligible, low, medium, high, or critical`, ); } if ( !FORMAT_LIST.some( (item) => typeof outputFormat.toLowerCase() === "string" && - item === outputFormat.toLowerCase() + item === outputFormat.toLowerCase(), ) ) { throw new Error( - `Invalid output-format value is set to ${outputFormat} - please ensure you are choosing either json or sarif` + `Invalid output-format value is set to ${outputFormat} - please ensure you are choosing either json or sarif`, ); } @@ -288,14 +288,14 @@ async function runScan({ core.warning("grype had a non-zero exit status when running"); } else if (failBuild === true) { core.setFailed( - `Failed minimum severity level. Found vulnerabilities with level '${severityCutoff}' or higher` + `Failed minimum severity level. Found vulnerabilities with level '${severityCutoff}' or higher`, ); } else { // There is a non-zero exit status code with severity cut off, although there is still a chance this is grype // that is broken, it will most probably be a failed severity. Using warning here will make it bubble up in the // Actions UI core.warning( - `Failed minimum severity level. Found vulnerabilities with level '${severityCutoff}' or higher` + `Failed minimum severity level. Found vulnerabilities with level '${severityCutoff}' or higher`, ); } } diff --git a/index.js b/index.js index 8ec6da0f..2428a4b6 100644 --- a/index.js +++ b/index.js @@ -60,7 +60,7 @@ function sourceInput() { if (multipleDefined(image, path, sbom)) { throw new Error( - "The following options are mutually exclusive: image, path, sbom" + "The following options are mutually exclusive: image, path, sbom", ); } @@ -136,7 +136,7 @@ async function runScan({ env.GRYPE_REGISTRY_AUTH_PASSWORD = registryPass; if (!registryUser || !registryPass) { core.warning( - "WARNING: registry-username and registry-password must be specified together" + "WARNING: registry-username and registry-password must be specified together", ); } } @@ -160,22 +160,22 @@ async function runScan({ !SEVERITY_LIST.some( (item) => typeof severityCutoff.toLowerCase() === "string" && - item === severityCutoff.toLowerCase() + item === severityCutoff.toLowerCase(), ) ) { throw new Error( - `Invalid severity-cutoff value is set to ${severityCutoff} - please ensure you are choosing either negligible, low, medium, high, or critical` + `Invalid severity-cutoff value is set to ${severityCutoff} - please ensure you are choosing either negligible, low, medium, high, or critical`, ); } if ( !FORMAT_LIST.some( (item) => typeof outputFormat.toLowerCase() === "string" && - item === outputFormat.toLowerCase() + item === outputFormat.toLowerCase(), ) ) { throw new Error( - `Invalid output-format value is set to ${outputFormat} - please ensure you are choosing either json or sarif` + `Invalid output-format value is set to ${outputFormat} - please ensure you are choosing either json or sarif`, ); } @@ -274,14 +274,14 @@ async function runScan({ core.warning("grype had a non-zero exit status when running"); } else if (failBuild === true) { core.setFailed( - `Failed minimum severity level. Found vulnerabilities with level '${severityCutoff}' or higher` + `Failed minimum severity level. Found vulnerabilities with level '${severityCutoff}' or higher`, ); } else { // There is a non-zero exit status code with severity cut off, although there is still a chance this is grype // that is broken, it will most probably be a failed severity. Using warning here will make it bubble up in the // Actions UI core.warning( - `Failed minimum severity level. Found vulnerabilities with level '${severityCutoff}' or higher` + `Failed minimum severity level. Found vulnerabilities with level '${severityCutoff}' or higher`, ); } } diff --git a/package-lock.json b/package-lock.json index d86eed69..80bcbc4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "husky": "^8.0.3", "jest": "^29.7.0", "lint-staged": "^15.2.0", - "prettier": "^3.2.2", + "prettier": "^3.2.4", "tslib": "^2.6.2" } }, @@ -4639,9 +4639,9 @@ } }, "node_modules/prettier": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.2.tgz", - "integrity": "sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", + "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -8831,9 +8831,9 @@ "dev": true }, "prettier": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.2.tgz", - "integrity": "sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", + "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", "dev": true }, "pretty-format": { diff --git a/package.json b/package.json index 608ac47c..9ab92ad2 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "husky": "^8.0.3", "jest": "^29.7.0", "lint-staged": "^15.2.0", - "prettier": "^3.2.2", + "prettier": "^3.2.4", "tslib": "^2.6.2" }, "lint-staged": {