-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Davidmerwin patch 5 #15
base: main
Are you sure you want to change the base?
Conversation
LangMers Systems
phase1 Signed-off-by: David Jeffrey Merwin <[email protected]>
Signed-off-by: David Jeffrey Merwin <[email protected]>
To view this pull requests documentation preview, visit the following URL: docs.page/davidmerwin/langmerssystems~15 Documentation is deployed and generated using docs.page. |
WalkthroughThe project has integrated Snyk, a tool for continuous security analysis, to strengthen its defenses against vulnerabilities. Additionally, it has adopted the CERN Open Hardware Licence V2, which governs the use and distribution of hardware designs, ensuring that modifications and distributions remain open and reciprocal. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChat with CodeRabbit Bot (
|
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
The Label Bot has predicted the following:
|
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
2 similar comments
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
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.
Feedback from Senior Dev Bot
|
||
You may Convey Covered Source, modified Covered Source or Products to a legal | ||
entity carrying out development, testing or quality assurance work on Your | ||
behalf provided that the work is performed on terms which prevent the entity | ||
from both using the Source or Products for its own internal purposes and | ||
Conveying the Source or Products or any modifications to them to any person | ||
other than You. Any modifications made by the entity shall be deemed to be | ||
made by You pursuant to subsection 3.2. | ||
|
||
|
||
6 DISCLAIMER AND LIABILITY | ||
|
||
6.1 DISCLAIMER OF WARRANTY -- The Covered Source and any Products are | ||
provided 'as is' and any express or implied warranties, including, but | ||
not limited to, implied warranties of merchantability, of satisfactory | ||
quality, non-infringement of third party rights, and fitness for a | ||
particular purpose or use are disclaimed in respect of any Source or | ||
Product to the maximum extent permitted by law. The Licensor makes no | ||
representation that any Source or Product does not or will not infringe | ||
any patent, copyright, trade secret or other proprietary right. The | ||
entire risk as to the use, quality, and performance of any Source or | ||
Product shall be with You and not the Licensor. This disclaimer of | ||
warranty is an essential part of this Licence and a condition for the | ||
grant of any rights granted under this Licence. | ||
|
||
6.2 EXCLUSION AND LIMITATION OF LIABILITY -- The Licensor shall, to the | ||
maximum extent permitted by law, have no liability for direct, indirect, | ||
special, incidental, consequential, exemplary, punitive or other damages | ||
of any character including, without limitation, procurement of | ||
substitute goods or services, loss of use, data or profits, or business | ||
interruption, however caused and on any theory of contract, warranty, | ||
tort (including negligence), product liability or otherwise, arising in | ||
any way in relation to the Covered Source, modified Covered Source | ||
and/or the Making or Conveyance of a Product, even if advised of the | ||
possibility of such damages, and You shall hold the Licensor(s) free and | ||
harmless from any liability, costs, damages, fees and expenses, | ||
including claims by third parties, in relation to such use. | ||
|
||
|
||
7 Patents | ||
|
||
7.1 Subject to the terms and conditions of this Licence, each Licensor | ||
hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, | ||
royalty-free, irrevocable (except as stated in subsections 7.2 and 8.4) | ||
patent licence to Make, have Made, use, offer to sell, sell, import, and | ||
otherwise transfer the Covered Source and Products, where such licence | ||
applies only to those patent claims licensable by such Licensor that are | ||
necessarily infringed by exercising rights under the Covered Source as | ||
Conveyed by that Licensor. | ||
|
||
7.2 If You institute patent litigation against any entity (including a | ||
cross-claim or counterclaim in a lawsuit) alleging that the Covered | ||
Source or a Product constitutes direct or contributory patent | ||
infringement, or You seek any declaration that a patent licensed to You | ||
under this Licence is invalid or unenforceable then any rights granted | ||
to You under this Licence shall terminate as of the date such process is | ||
initiated. | ||
|
||
|
||
8 General | ||
|
||
8.1 If any provisions of this Licence are or subsequently become invalid or | ||
unenforceable for any reason, the remaining provisions shall remain | ||
effective. | ||
|
||
8.2 You shall not use any of the name (including acronyms and | ||
abbreviations), image, or logo by which the Licensor or CERN is known, | ||
except where needed to comply with section 3, or where the use is | ||
otherwise allowed by law. Any such permitted use shall be factual and | ||
shall not be made so as to suggest any kind of endorsement or | ||
implication of involvement by the Licensor or its personnel. | ||
|
||
8.3 CERN may publish updated versions and variants of this Licence which it | ||
considers to be in the spirit of this version, but may differ in detail | ||
to address new problems or concerns. New versions will be published with | ||
a unique version number and a variant identifier specifying the variant. | ||
If the Licensor has specified that a given variant applies to the | ||
Covered Source without specifying a version, You may treat that Covered | ||
Source as being released under any version of the CERN-OHL with that | ||
variant. If no variant is specified, the Covered Source shall be treated | ||
as being released under CERN-OHL-S. The Licensor may also specify that | ||
the Covered Source is subject to a specific version of the CERN-OHL or | ||
any later version in which case You may apply this or any later version | ||
of CERN-OHL with the same variant identifier published by CERN. | ||
|
||
8.4 This Licence shall terminate with immediate effect if You fail to comply | ||
with any of its terms and conditions. | ||
|
||
8.5 However, if You cease all breaches of this Licence, then Your Licence | ||
from any Licensor is reinstated unless such Licensor has terminated this | ||
Licence by giving You, while You remain in breach, a notice specifying | ||
the breach and requiring You to cure it within 30 days, and You have | ||
failed to come into compliance in all material respects by the end of | ||
the 30 day period. Should You repeat the breach after receipt of a cure | ||
notice and subsequent reinstatement, this Licence will terminate | ||
immediately and permanently. Section 6 shall continue to apply after any | ||
termination. | ||
|
||
8.6 This Licence shall not be enforceable except by a Licensor acting as | ||
such, and third party beneficiary rights are specifically excluded. |
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.
This appears to be a change adding a new software license to the project.
However, the diff isn't showing me any context: I can see new content but I can't tell where it is or how it interacts with existing code.
Use git diff --color-words
or a tool like diff-so-fancy
to make changes easier to identify:
$ git diff --color-words
Also, if you're switching to a completely new license, consider whether it's a breaking change that might affect users of your software.
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# A sample workflow which sets up Snyk to analyze the full Snyk platform (Snyk Open Source, Snyk Code, | ||
# Snyk Container and Snyk Infrastructure as Code) | ||
# The setup installs the Snyk CLI - for more details on the possible commands | ||
# check https://docs.snyk.io/snyk-cli/cli-reference | ||
# The results of Snyk Code are then uploaded to GitHub Security Code Scanning | ||
# | ||
# In order to use the Snyk Action you will need to have a Snyk API token. | ||
# More details in https://github.com/snyk/actions#getting-your-snyk-token | ||
# or you can signup for free at https://snyk.io/login | ||
# | ||
# For more examples, including how to limit scans to only high-severity issues | ||
# and fail PR checks, see https://github.com/snyk/actions/ | ||
|
||
name: Snyk Security | ||
|
||
on: | ||
push: | ||
branches: ["main", "Map"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
snyk: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Snyk CLI to check for security issues | ||
# Snyk can be used to break the build when it detects security issues. | ||
# In this case we want to upload the SAST issues to GitHub Code Scanning | ||
uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb | ||
|
||
# For Snyk Open Source you must first set up the development environment for your application's dependencies | ||
# For example for Node | ||
#- uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16 | ||
|
||
env: | ||
# This is where you will need to introduce the Snyk API token created with your Snyk account | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
|
||
# Runs Snyk Code (SAST) analysis and uploads result into GitHub. | ||
# Use || true to not fail the pipeline | ||
- name: Snyk Code test | ||
run: snyk code test --sarif > snyk-code.sarif # || true | ||
|
||
# Runs Snyk Open Source (SCA) analysis and uploads result to Snyk. | ||
- name: Snyk Open Source monitor | ||
run: snyk monitor --all-projects | ||
|
||
# Runs Snyk Infrastructure as Code (IaC) analysis and uploads result to Snyk. | ||
# Use || true to not fail the pipeline. | ||
- name: Snyk IaC test and report | ||
run: snyk iac test --report # || true | ||
|
||
# Build the docker image for testing | ||
- name: Build a Docker image | ||
run: docker build -t your/image-to-test . | ||
# Runs Snyk Container (Container and SCA) analysis and uploads result to Snyk. | ||
- name: Snyk Container monitor | ||
run: snyk container monitor your/image-to-test --file=Dockerfile | ||
|
||
# Push the Snyk Code results into GitHub Code Scanning tab | ||
- name: Upload result to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: snyk-code.sarif |
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.
This workflow seems to cover all aspects of Snyk very well. To make debugging easier, it's recommendable to add comments to your runs that may fail (i.e., Snyk Code test
and Snyk IaC test and report
).
- name: Snyk Code test
run: snyk code test --sarif > snyk-code.sarif # || true
# add a comment: Continue the pipeline even if this step fails
- name: Snyk IaC test and report
run: snyk iac test --report # || true
# add a comment: Continue the pipeline even if this step fails
PR Description updated to latest commit (a4588fe) |
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
Code Review AI:
|
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
2 similar comments
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
PR Analysis
PR Feedback💡 General suggestions: The PR is well-structured and the changes are clear. It would be beneficial to ensure that the Snyk API token is securely stored and handled. Also, it's important to verify that the updated license is in line with the project's requirements and goals. 🤖 Code feedback:
✨ Usage tips:
|
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
1 similar comment
🙏 Thanks for your pull request @davidmerwin, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated! Some of the most popular are PR Statistics
|
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.
Review Status
Actionable comments generated: 3
Configuration used: CodeRabbit UI
Files selected for processing (2)
- .github/workflows/snyk-security.yml (1 hunks)
- LICENSE (1 hunks)
Files skipped from review due to trivial changes (1)
- LICENSE
Additional comments: 6
.github/workflows/snyk-security.yml (6)
1-4: The disclaimer about third-party actions is clear and important for maintainers to be aware of the terms of service and support documentation.
22-25: Verify that the
Map
branch is an intended target for the Snyk security workflow and that it exists in the repository.27-35: Permissions are scoped correctly for the tasks being performed by the workflow, which is a good security practice.
42-42: Using a specific commit hash for the Snyk action setup is a good practice for stability and security, ensuring that the action does not change unexpectedly.
51-52: Using GitHub secrets for the Snyk API token is a secure practice to protect sensitive information.
75-79: Uploading the SARIF file to GitHub Code Scanning is a good practice to integrate security findings into the GitHub UI for better visibility and tracking.
#- uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16 |
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.
Consider removing the commented-out steps for setting up a Node environment if they are not needed, to keep the workflow clean and maintainable.
# Runs Snyk Code (SAST) analysis and uploads result into GitHub. | ||
# Use || true to not fail the pipeline | ||
- name: Snyk Code test | ||
run: snyk code test --sarif > snyk-code.sarif # || true |
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.
Consider uncommenting || true
to prevent the pipeline from failing on Snyk Code issues if that is the intended behavior.
|
||
# Build the docker image for testing | ||
- name: Build a Docker image | ||
run: docker build -t your/image-to-test . |
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.
Replace the placeholder your/image-to-test
with the actual image name or a variable that can be set in the GitHub secrets or environment variables.
Type
Enhancement, Other
Description
PR changes walkthrough
1 files
snyk-security.yml
.github/workflows/snyk-security.yml
A new GitHub Actions workflow file has been added. This
workflow is designed to set up Snyk to analyze the full Snyk
platform (Snyk Open Source, Snyk Code, Snyk Container, and
Snyk Infrastructure as Code). It also uploads the results of
Snyk Code to GitHub Security Code Scanning.
1 files
LICENSE
LICENSE
The license file has been updated with the CERN Open
Hardware Licence Version 2 - Strongly Reciprocal.
User description
LangMers#5 (comment) @davidmerwin #14 @davidmerwin
Summary by CodeRabbit
New Features
Documentation