-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved fetch license for nuget #739
Merged
prabhu
merged 22 commits into
CycloneDX:master
from
Nikemare:improved-fetch-license-for-nuget
Nov 28, 2023
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0313d67
Improve fetch license for nuget
Nikemare 061db4b
Fixing issues checking license status
Nikemare 120aa8a
Fixed type check
Nikemare 131924e
Providing https instead of http
Nikemare 642c7b3
Code formatting
Nikemare ce2b6f0
Added fetch_license test for dotnet-paket
Nikemare 024e968
Refactored & improved nuget license resolving
Nikemare 9826329
Fixed bug in getRepoLicense
Nikemare 4d24520
Add support for mono and apache.org
Nikemare 4fec4a5
Refactored known-licenses & rate limit docu
Nikemare 423e540
Improve fetch license for nuget
Nikemare 2ca22dc
Fixing issues checking license status
Nikemare 370085d
Fixed type check
Nikemare 4cc7491
Providing https instead of http
Nikemare caf0f15
Code formatting
Nikemare 46eece7
Added fetch_license test for dotnet-paket
Nikemare ae0e264
Refactored & improved nuget license resolving
Nikemare a75ebe9
Fixed bug in getRepoLicense
Nikemare 589c2f1
Add support for mono and apache.org
Nikemare 2247f43
Refactored known-licenses & rate limit docu
Nikemare 60768ca
Merge branch 'improved-fetch-license-for-nuget' of https://github.com…
Nikemare bceca13
Small fixes for known-licenses
Nikemare File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -1,31 +1,82 @@ | ||
[ | ||
{ "license": "Apache-2.0", "group": "cloud.google.com", "name": "go" }, | ||
{ "license": "Apache-2.0", "group": "cloud.google.com/go", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "cuelang.org", "name": "go" }, | ||
{ "license": "MIT", "group": "pack.ag", "name": "amqp" }, | ||
{ "license": "Apache-2.0", "group": "google.golang.org", "name": "*" }, | ||
{ "license": "BSD-3-Clause", "group": "golang.org/x", "name": "*" }, | ||
{ | ||
"license": "BSD-3-Clause", | ||
"group": "dmitri.shuralyov.com/gpu", | ||
"name": "*" | ||
"packageNamespace": "*", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clever idea! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you ❤️ |
||
"knownLicenses": [{ "license": "MIT", "urlIncludes": "mit-license" }] | ||
}, | ||
{ "license": "Apache-2.0", "group": "contrib.go.opencensus.io", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "git.apache.org", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": ".", "name": "go.opencensus.io" }, | ||
{ "license": "MIT", "group": "sigs.k8s.io", "name": "*" }, | ||
{ "license": "BSD-3-Clause", "group": "rsc.io", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "openpitrix.io", "name": "*" }, | ||
{ "license": "BSD-3-Clause", "group": "modernc.org", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "kubesphere.io", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "k8s.io", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "istio.io", "name": "*" }, | ||
{ "license": "MIT", "group": "honnef.co/go", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": ".", "name": "gotest.tools" }, | ||
{ "license": "Apache-2.0", "group": "gopkg.in", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "code.cloudfoundry.org", "name": "*" }, | ||
{ "license": "BSD-3-Clause", "group": "gonum.org/v1", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "gomodules.xyz/jsonpatch", "name": "*" }, | ||
{ "license": "MIT", "group": "go.uber.org", "name": "*" }, | ||
{ "license": "MIT", "group": "go.etcd.io", "name": "*" } | ||
{ | ||
"packageNamespace": "pkg:golang/", | ||
"knownLicenses": [ | ||
{ "license": "Apache-2.0", "group": "cloud.google.com", "name": "go" }, | ||
{ "license": "Apache-2.0", "group": "cloud.google.com/go", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "cuelang.org", "name": "go" }, | ||
{ "license": "MIT", "group": "pack.ag", "name": "amqp" }, | ||
{ "license": "Apache-2.0", "group": "google.golang.org", "name": "*" }, | ||
{ "license": "BSD-3-Clause", "group": "golang.org/x", "name": "*" }, | ||
{ | ||
"license": "BSD-3-Clause", | ||
"group": "dmitri.shuralyov.com/gpu", | ||
"name": "*" | ||
}, | ||
{ | ||
"license": "Apache-2.0", | ||
"group": "contrib.go.opencensus.io", | ||
"name": "*" | ||
}, | ||
{ "license": "Apache-2.0", "group": "git.apache.org", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": ".", "name": "go.opencensus.io" }, | ||
{ "license": "MIT", "group": "sigs.k8s.io", "name": "*" }, | ||
{ "license": "BSD-3-Clause", "group": "rsc.io", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "openpitrix.io", "name": "*" }, | ||
{ "license": "BSD-3-Clause", "group": "modernc.org", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "kubesphere.io", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "k8s.io", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": "istio.io", "name": "*" }, | ||
{ "license": "MIT", "group": "honnef.co/go", "name": "*" }, | ||
{ "license": "Apache-2.0", "group": ".", "name": "gotest.tools" }, | ||
{ "license": "Apache-2.0", "group": "gopkg.in", "name": "*" }, | ||
{ | ||
"license": "Apache-2.0", | ||
"group": "code.cloudfoundry.org", | ||
"name": "*" | ||
}, | ||
{ "license": "BSD-3-Clause", "group": "gonum.org/v1", "name": "*" }, | ||
{ | ||
"license": "Apache-2.0", | ||
"group": "gomodules.xyz/jsonpatch", | ||
"name": "*" | ||
}, | ||
{ "license": "MIT", "group": "go.uber.org", "name": "*" }, | ||
{ "license": "MIT", "group": "go.etcd.io", "name": "*" } | ||
] | ||
}, | ||
{ | ||
"packageNamespace": "pkg:nuget/", | ||
"knownLicenses": [ | ||
{ | ||
"license": "MIT", | ||
"urlIncludes": "//github.com/dotnet/standard/", | ||
"licenseEvidence": "https://github.com/dotnet/standard/blob/release/3.0/LICENSE.TXT" | ||
}, | ||
{ | ||
"license": "MIT", | ||
"urlIncludes": "//github.com/dotnet/corefx/", | ||
"licenseEvidence": "https://github.com/dotnet/corefx/blob/release/2.0.0/LICENSE.TXT" | ||
}, | ||
{ | ||
"license": "MIT", | ||
"urlIncludes": "//github.com/dotnet/core-setup/", | ||
"licenseEvidence": "https://github.com/dotnet/core-setup/blob/release/2.0.0/LICENSE.TXT" | ||
}, | ||
{ | ||
"licenseName": ".NET Library License", | ||
"urlEndswith": "?LinkId=329770", | ||
"licenseEvidence": "https://go.microsoft.com/fwlink/?LinkId=329770" | ||
}, | ||
{ | ||
"licenseName": ".NET Library License", | ||
"urlEndswith": "dotnet_library_license.htm", | ||
"licenseEvidence": "https://dotnet.microsoft.com/en-us/dotnet_library_license.htm" | ||
} | ||
] | ||
} | ||
] |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The built-in GITHUB_TOKEN has god-level permissions for many organizations. Is there a specific scope required for us? I believe it can be a PAT with no scopes, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No scope required at all. A fine-grained Personal Access Token with Public Repositories (read-only) is enough.