@@ -111,7 +111,7 @@ test('it reads an external config file', async () => {
|
|||||||
expect(config.allow_licenses).toEqual(['BSD', 'GPL 2'])
|
expect(config.allow_licenses).toEqual(['BSD', 'GPL 2'])
|
||||||
})
|
})
|
||||||
|
|
||||||
test('raises an error when the the config file was not found', async () => {
|
test('raises an error when the config file was not found', async () => {
|
||||||
setInput('config-file', 'fixtures/i-dont-exist')
|
setInput('config-file', 'fixtures/i-dont-exist')
|
||||||
await expect(readConfig()).rejects.toThrow(/Unable to fetch/)
|
await expect(readConfig()).rejects.toThrow(/Unable to fetch/)
|
||||||
})
|
})
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ inputs:
|
|||||||
description: Comma-separated list of forbidden licenses (e.g. "MIT, GPL 3.0, BSD 2 Clause")
|
description: Comma-separated list of forbidden licenses (e.g. "MIT, GPL 3.0, BSD 2 Clause")
|
||||||
required: false
|
required: false
|
||||||
allow-ghsas:
|
allow-ghsas:
|
||||||
description: Comma-separated list of allowed Github Advisory IDs (e.g. "GHSA-abcd-1234-5679, GHSA-efgh-1234-5679")
|
description: Comma-separated list of allowed GitHub Advisory IDs (e.g. "GHSA-abcd-1234-5679, GHSA-efgh-1234-5679")
|
||||||
required: false
|
required: false
|
||||||
external-repo-token:
|
external-repo-token:
|
||||||
description: A token for fetching external configuration file if it lives in another repository. It is required if the repository is private
|
description: A token for fetching external configuration file if it lives in another repository. It is required if the repository is private
|
||||||
|
|||||||
+1
-1
@@ -622,7 +622,7 @@ function addChangeVulnerabilitiesToSummary(addedPackages, severity) {
|
|||||||
const manifests = (0, utils_1.getManifestsSet)(addedPackages);
|
const manifests = (0, utils_1.getManifestsSet)(addedPackages);
|
||||||
core.summary
|
core.summary
|
||||||
.addHeading('Vulnerabilities')
|
.addHeading('Vulnerabilities')
|
||||||
.addQuote(`Vulnerabilites were filtered by mininum severity <strong>${severity}</strong>.`);
|
.addQuote(`Vulnerabilities were filtered by minimum severity <strong>${severity}</strong>.`);
|
||||||
if (addedPackages.length === 0) {
|
if (addedPackages.length === 0) {
|
||||||
core.summary.addQuote('No vulnerabilities found in added packages.');
|
core.summary.addQuote('No vulnerabilities found in added packages.');
|
||||||
return;
|
return;
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -35,7 +35,7 @@ export function addChangeVulnerabilitiesToSummary(
|
|||||||
core.summary
|
core.summary
|
||||||
.addHeading('Vulnerabilities')
|
.addHeading('Vulnerabilities')
|
||||||
.addQuote(
|
.addQuote(
|
||||||
`Vulnerabilites were filtered by mininum severity <strong>${severity}</strong>.`
|
`Vulnerabilities were filtered by minimum severity <strong>${severity}</strong>.`
|
||||||
)
|
)
|
||||||
|
|
||||||
if (addedPackages.length === 0) {
|
if (addedPackages.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user