-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into takost/update-to-node-20
- Loading branch information
Showing
7 changed files
with
27 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ const pipChange: Change = { | |
ecosystem: 'pip', | ||
name: 'package-1', | ||
version: '1.1.1', | ||
package_url: 'pkg:pip/[email protected]', | ||
package_url: 'pkg:pypi/[email protected]', | ||
license: 'MIT', | ||
source_repository_url: 'github.com/some-repo', | ||
scope: 'runtime', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ const pipChange: Change = { | |
ecosystem: 'pip', | ||
name: 'package-1', | ||
version: '1.1.1', | ||
package_url: 'pkg:pip/[email protected]', | ||
package_url: 'pkg:pypi/[email protected]', | ||
license: 'MIT', | ||
source_repository_url: 'github.com/some-repo', | ||
scope: 'runtime', | ||
|
@@ -183,7 +183,7 @@ test('it does not filter out changes that are on the exclusions list', async () | |
const changes: Changes = [pipChange, npmChange, rubyChange] | ||
const licensesConfig = { | ||
allow: ['BSD'], | ||
licenseExclusions: ['pkg:pip/[email protected]', 'pkg:npm/[email protected]'] | ||
licenseExclusions: ['pkg:pypi/[email protected]', 'pkg:npm/[email protected]'] | ||
} | ||
const invalidLicenses = await getInvalidLicenseChanges( | ||
changes, | ||
|
@@ -199,7 +199,7 @@ test('it does not fail when the packages dont have a valid PURL', async () => { | |
const changes: Changes = [emptyPurlChange, npmChange, rubyChange] | ||
const licensesConfig = { | ||
allow: ['BSD'], | ||
licenseExclusions: ['pkg:pip/[email protected]', 'pkg:npm/[email protected]'] | ||
licenseExclusions: ['pkg:pypi/[email protected]', 'pkg:npm/[email protected]'] | ||
} | ||
|
||
const invalidLicenses = await getInvalidLicenseChanges( | ||
|
@@ -213,7 +213,10 @@ test('it does filters out changes if they are not on the exclusions list', async | |
const changes: Changes = [pipChange, npmChange, rubyChange] | ||
const licensesConfig = { | ||
allow: ['BSD'], | ||
licenseExclusions: ['pkg:pip/[email protected]', 'pkg:npm/[email protected]'] | ||
licenseExclusions: [ | ||
'pkg:pypi/[email protected]', | ||
'pkg:npm/[email protected]' | ||
] | ||
} | ||
const invalidLicenses = await getInvalidLicenseChanges( | ||
changes, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,9 @@ const defaultConfig: ConfigurationOptions = { | |
deny_groups: [], | ||
allow_dependencies_licenses: [ | ||
'pkg:npm/[email protected]', | ||
'pkg:pip/requests', | ||
'pkg:pip/certifi', | ||
'pkg:pip/[email protected]' | ||
'pkg:pypi/requests', | ||
'pkg:pypi/certifi', | ||
'pkg:pypi/[email protected]' | ||
], | ||
comment_summary_in_pr: true, | ||
retry_on_snapshot_warnings: false, | ||
|