File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,13 @@ export async function getDeniedChanges(
9
9
) : Promise < Change [ ] > {
10
10
const changesDenied : Change [ ] = [ ]
11
11
12
- let hasDeniedPackage = false
13
12
for ( const change of changes ) {
14
13
for ( const denied of deniedPackages ) {
15
14
if (
16
15
( ! denied . version || change . version === denied . version ) &&
17
16
change . name === denied . name
18
17
) {
19
18
changesDenied . push ( change )
20
- hasDeniedPackage = true
21
19
}
22
20
}
23
21
@@ -30,7 +28,6 @@ export async function getDeniedChanges(
30
28
}
31
29
if ( namespace && namespace === denied . namespace ) {
32
30
changesDenied . push ( change )
33
- hasDeniedPackage = true
34
31
}
35
32
}
36
33
}
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ async function run(): Promise<void> {
210
210
}
211
211
}
212
212
213
- function printVulnerabilitiesBlock (
213
+ async function printVulnerabilitiesBlock (
214
214
addedChanges : Changes ,
215
215
minSeverity : Severity ,
216
216
warnOnly : boolean
@@ -253,7 +253,7 @@ function printChangeVulnerabilities(change: Change): boolean {
253
253
return change . vulnerabilities . length > 0
254
254
}
255
255
256
- function printLicensesBlock (
256
+ async function printLicensesBlock (
257
257
invalidLicenseChanges : Record < string , Changes > ,
258
258
warnOnly : boolean
259
259
) : Promise < boolean > {
@@ -383,10 +383,10 @@ function printScannedDependencies(changes: Changes): void {
383
383
} )
384
384
}
385
385
386
- function printDeniedDependencies (
386
+ async function printDeniedDependencies (
387
387
changes : Changes ,
388
388
config : ConfigurationOptions
389
- ) : Promise < boolean > {
389
+ ) : Promise < boolean > {
390
390
return core . group ( 'Denied' , async ( ) => {
391
391
let issueFound = false
392
392
You can’t perform that action at this time.
0 commit comments