-
Notifications
You must be signed in to change notification settings - Fork 15
Add license check to CI #98
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f90707d
Add step to add cargo-about
Niederb 98ac38a
Add actual license check
Niederb a4d2c15
Archive the license file
Niederb 5d5996b
Check if the build fails if a license is missing
Niederb 3cb96d7
Update license check config
Niederb 917dd4f
Fix name in license template
Niederb 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
Add actual license check
- Loading branch information
commit 98ac38abd40b015f9f824cfad5fcece3a08080b9
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| <html> | ||
|
|
||
| <head> | ||
| <style> | ||
| @media (prefers-color-scheme: dark) { | ||
| body { | ||
| background: #333; | ||
| color: white; | ||
| } | ||
| a { | ||
| color: skyblue; | ||
| } | ||
| } | ||
| .container { | ||
| font-family: sans-serif; | ||
| max-width: 800px; | ||
| margin: 0 auto; | ||
| } | ||
| .intro { | ||
| text-align: center; | ||
| } | ||
| .licenses-list { | ||
| list-style-type: none; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
| .license-used-by { | ||
| margin-top: -10px; | ||
| } | ||
| .license-text { | ||
| max-height: 200px; | ||
| overflow-y: scroll; | ||
| white-space: pre-wrap; | ||
| } | ||
| </style> | ||
| </head> | ||
|
|
||
| <body> | ||
| <main class="container"> | ||
| <div class="intro"> | ||
| <h1>Third Party Licenses</h1> | ||
| <p>This page lists the licenses of the projects used in cargo-about.</p> | ||
| </div> | ||
|
|
||
| <h2>Overview of licenses:</h2> | ||
| <ul class="licenses-overview"> | ||
| {{#each overview}} | ||
| <li><a href="#{{id}}">{{name}}</a> ({{count}})</li> | ||
| {{/each}} | ||
| </ul> | ||
|
|
||
| <h2>All license text:</h2> | ||
| <ul class="licenses-list"> | ||
| {{#each licenses}} | ||
| <li class="license"> | ||
| <h3 id="{{id}}">{{name}}</h3> | ||
| <h4>Used by:</h4> | ||
| <ul class="license-used-by"> | ||
| {{#each used_by}} | ||
| <li><a href="{{#if crate.repository}} {{crate.repository}} {{else}} https://crates.io/crates/{{crate.name}} {{/if}}">{{crate.name}} {{crate.version}}</a></li> | ||
| {{/each}} | ||
| </ul> | ||
| <pre class="license-text">{{text}}</pre> | ||
| </li> | ||
| {{/each}} | ||
| </ul> | ||
| </main> | ||
| </body> | ||
|
|
||
| </html> | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| accepted = [ | ||
| "Apache-2.0", | ||
| "MIT", | ||
| "BSD-2-Clause", | ||
| "CC0-1.0", | ||
| "BSD-3-Clause", | ||
| "MPL-2.0", | ||
| "ISC", | ||
| "OpenSSL", | ||
| "Unicode-DFS-2016" | ||
| ] | ||
| workarounds = [ | ||
| "ring", | ||
| ] |
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.
Here we should probably change 'cargo-about' to 'Integritee Networks Pallets' repository.
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.
Yeah, probably... 🤣