Skip to content

Commit 3b139cf

Browse files
Merge pull request #851 from actions/ahmed3lmallah/prepare-for-4.5.0-release
Prepare for 4.5.0 release
2 parents 9d10182 + d6807b6 commit 3b139cf

File tree

8 files changed

+1648
-2384
lines changed

8 files changed

+1648
-2384
lines changed

dist/index.js

Lines changed: 1638 additions & 2352 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/licenses.txt

Lines changed: 1 addition & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sourcemap-register.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dependency-review-action",
3-
"version": "4.3.5",
3+
"version": "4.5.0",
44
"private": true,
55
"description": "A GitHub Action for Dependency Review",
66
"main": "lib/main.js",

src/deny.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ export async function getDeniedChanges(
99
): Promise<Change[]> {
1010
const changesDenied: Change[] = []
1111

12-
let hasDeniedPackage = false
1312
for (const change of changes) {
1413
for (const denied of deniedPackages) {
1514
if (
1615
(!denied.version || change.version === denied.version) &&
1716
change.name === denied.name
1817
) {
1918
changesDenied.push(change)
20-
hasDeniedPackage = true
2119
}
2220
}
2321

@@ -30,7 +28,6 @@ export async function getDeniedChanges(
3028
}
3129
if (namespace && namespace === denied.namespace) {
3230
changesDenied.push(change)
33-
hasDeniedPackage = true
3431
}
3532
}
3633
}

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async function run(): Promise<void> {
210210
}
211211
}
212212

213-
function printVulnerabilitiesBlock(
213+
async function printVulnerabilitiesBlock(
214214
addedChanges: Changes,
215215
minSeverity: Severity,
216216
warnOnly: boolean
@@ -253,7 +253,7 @@ function printChangeVulnerabilities(change: Change): boolean {
253253
return change.vulnerabilities.length > 0
254254
}
255255

256-
function printLicensesBlock(
256+
async function printLicensesBlock(
257257
invalidLicenseChanges: Record<string, Changes>,
258258
warnOnly: boolean
259259
): Promise<boolean> {
@@ -383,10 +383,10 @@ function printScannedDependencies(changes: Changes): void {
383383
})
384384
}
385385

386-
function printDeniedDependencies(
386+
async function printDeniedDependencies(
387387
changes: Changes,
388388
config: ConfigurationOptions
389-
): Promise<boolean> {
389+
): Promise<boolean> {
390390
return core.group('Denied', async () => {
391391
let issueFound = false
392392

0 commit comments

Comments
 (0)