This commit is contained in:
tgrall
2023-06-13 09:34:12 +02:00
parent f1e6d67732
commit 995bb847a3
3 changed files with 6 additions and 1 deletions
Generated Vendored
+2
View File
@@ -508,6 +508,8 @@ function run() {
if (failOnSeverityParams) {
minSeverity = failOnSeverityParams;
}
// debug
core.debug(`Config: \n\t ${JSON.stringify(config, null, 2)}`);
const scopedChanges = (0, filter_1.filterChangesByScopes)(config.fail_on_scopes, changes);
const filteredChanges = (0, filter_1.filterAllowedAdvisories)(config.allow_ghsas, scopedChanges);
const vulnerableChanges = (0, filter_1.filterChangesBySeverity)(minSeverity, filteredChanges).filter(change => change.change_type === 'added' &&
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+3
View File
@@ -44,6 +44,9 @@ async function run(): Promise<void> {
minSeverity = failOnSeverityParams
}
// debug
core.debug(`Config: \n\t ${JSON.stringify(config, null, 2)}`)
const scopedChanges = filterChangesByScopes(config.fail_on_scopes, changes)
const filteredChanges = filterAllowedAdvisories(
config.allow_ghsas,