Merge pull request #851 from actions/ahmed3lmallah/prepare-for-4.5.0-release

Prepare for 4.5.0 release
This commit is contained in:
Ahmed ElMallah
2024-11-20 13:49:04 -08:00
committed by GitHub
8 changed files with 1647 additions and 2383 deletions
Generated Vendored
+1637 -2351
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+1 -20
View File
@@ -1460,7 +1460,7 @@ lru-cache
ISC ISC
The ISC License The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above purpose with or without fee is hereby granted, provided that the above
@@ -1764,25 +1764,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
yallist
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
yaml yaml
ISC ISC
Copyright Eemeli Aro <[email protected]> Copyright Eemeli Aro <[email protected]>
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "dependency-review-action", "name": "dependency-review-action",
"version": "4.3.5", "version": "4.5.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "dependency-review-action", "name": "dependency-review-action",
"version": "4.3.5", "version": "4.5.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.1", "@actions/core": "^1.10.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dependency-review-action", "name": "dependency-review-action",
"version": "4.3.5", "version": "4.5.0",
"private": true, "private": true,
"description": "A GitHub Action for Dependency Review", "description": "A GitHub Action for Dependency Review",
"main": "lib/main.js", "main": "lib/main.js",
-3
View File
@@ -9,7 +9,6 @@ export async function getDeniedChanges(
): Promise<Change[]> { ): Promise<Change[]> {
const changesDenied: Change[] = [] const changesDenied: Change[] = []
let hasDeniedPackage = false
for (const change of changes) { for (const change of changes) {
for (const denied of deniedPackages) { for (const denied of deniedPackages) {
if ( if (
@@ -17,7 +16,6 @@ export async function getDeniedChanges(
change.name === denied.name change.name === denied.name
) { ) {
changesDenied.push(change) changesDenied.push(change)
hasDeniedPackage = true
} }
} }
@@ -30,7 +28,6 @@ export async function getDeniedChanges(
} }
if (namespace && namespace === denied.namespace) { if (namespace && namespace === denied.namespace) {
changesDenied.push(change) changesDenied.push(change)
hasDeniedPackage = true
} }
} }
} }
+3 -3
View File
@@ -210,7 +210,7 @@ async function run(): Promise<void> {
} }
} }
function printVulnerabilitiesBlock( async function printVulnerabilitiesBlock(
addedChanges: Changes, addedChanges: Changes,
minSeverity: Severity, minSeverity: Severity,
warnOnly: boolean warnOnly: boolean
@@ -253,7 +253,7 @@ function printChangeVulnerabilities(change: Change): boolean {
return change.vulnerabilities.length > 0 return change.vulnerabilities.length > 0
} }
function printLicensesBlock( async function printLicensesBlock(
invalidLicenseChanges: Record<string, Changes>, invalidLicenseChanges: Record<string, Changes>,
warnOnly: boolean warnOnly: boolean
): Promise<boolean> { ): Promise<boolean> {
@@ -383,7 +383,7 @@ function printScannedDependencies(changes: Changes): void {
}) })
} }
function printDeniedDependencies( async function printDeniedDependencies(
changes: Changes, changes: Changes,
config: ConfigurationOptions config: ConfigurationOptions
): Promise<boolean> { ): Promise<boolean> {