-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-5053: Generate ssdlc_compliance_report.md #1337
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
+139
−4
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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 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,35 @@ | ||
| #!/usr/bin/env bash | ||
| set -o errexit # Exit the script with error if any of the commands fail | ||
|
|
||
| # Environment variables used as input: | ||
| # PRODUCT_NAME | ||
| # PACKAGE_VERSION | ||
| # github_commit | ||
|
|
||
| echo "$PRODUCT_NAME" | ||
| echo "$PACKAGE_VERSION" | ||
| echo "$github_commit" | ||
|
|
||
| echo "Creating SSDLC reports" | ||
|
|
||
| declare -r SSDLC_PATH="./artifacts/ssdlc" | ||
| mkdir -p "${SSDLC_PATH}" | ||
|
|
||
| echo "Creating SSDLC compliance report" | ||
| declare -r TEMPLATE_SSDLC_REPORT_PATH="./evergreen/template_ssdlc_compliance_report.md" | ||
| declare -r SSDLC_REPORT_PATH="${SSDLC_PATH}/ssdlc_compliance_report.md" | ||
| cp "${TEMPLATE_SSDLC_REPORT_PATH}" "${SSDLC_REPORT_PATH}" | ||
|
|
||
| declare -a SED_EDIT_IN_PLACE_OPTION | ||
| if [[ "$OSTYPE" == "darwin"* ]]; then | ||
| SED_EDIT_IN_PLACE_OPTION=(-i '') | ||
| else | ||
| SED_EDIT_IN_PLACE_OPTION=(-i) | ||
| fi | ||
| sed "${SED_EDIT_IN_PLACE_OPTION[@]}" \ | ||
| -e "s/\${PRODUCT_NAME}/${PRODUCT_NAME}/g" \ | ||
| -e "s/\${PACKAGE_VERSION}/$PACKAGE_VERSION/g" \ | ||
| -e "s/\${github_commit}/$github_commit/g" \ | ||
| -e "s/\${REPORT_DATE_UTC}/$(date -u +%Y-%m-%d)/g" \ | ||
| "${SSDLC_REPORT_PATH}" | ||
| ls "${SSDLC_REPORT_PATH}" |
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,59 @@ | ||
| # ${PRODUCT_NAME} SSDLC compliance report | ||
|
Contributor
Author
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. @JamesKovacs could use your quick review for just the template. |
||
|
|
||
| This report is available | ||
| <a href=https://us-west-2.console.aws.amazon.com/s3/object/csharp-driver-release-assets?region=us-west-2&bucketType=general&prefix=${PRODUCT_NAME}/${PACKAGE_VERSION}/ssdlc_compliance_report.md>here</a>. | ||
|
|
||
| <table> | ||
| <tr> | ||
| <th>Product name</th> | ||
| <td><a href="https://github.com/mongodb/mongo-csharp-driver">${PRODUCT_NAME}</a></td> | ||
| </tr> | ||
| <tr> | ||
| <th>Product version</th> | ||
| <td>${PACKAGE_VERSION}</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Report date, UTC</th> | ||
| <td>${REPORT_DATE_UTC}</td> | ||
| </tr> | ||
| </table> | ||
|
|
||
| ## Release creator | ||
|
|
||
| This information is available in multiple ways: | ||
|
|
||
| <table> | ||
| <tr> | ||
| <th>Evergreen</th> | ||
| <td> | ||
| See the "Submitted by" field in <a href="https://spruce.mongodb.com/version/dot_net_driver_v${PACKAGE_VERSION}_${github_commit}">Evergreen release patch</a>. | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <th>Papertrail</th> | ||
| <td> | ||
| Refer to data in Papertrail. There is currently no official way to serve that data. | ||
| </td> | ||
| </tr> | ||
| </table> | ||
|
|
||
| ## Process document | ||
|
|
||
| Blocked on <https://jira.mongodb.org/browse/CSHARP-5047>. | ||
|
|
||
| The MongoDB SSDLC policy is available at | ||
| <https://docs.google.com/document/d/1u0m4Kj2Ny30zU74KoEFCN4L6D_FbEYCaJ3CQdCYXTMc>. | ||
|
|
||
| ## Third-darty dependency information | ||
|
|
||
| There are no dependencies to report vulnerabilities of. | ||
| Our [SBOM](https://docs.devprod.prod.corp.mongodb.com/mms/python/src/sbom/silkbomb/docs/CYCLONEDX/) lite | ||
| is <https://github.com/mongodb/mongo-csharp-driver/blob/v${PACKAGE_VERSION}/sbom.json>. | ||
|
|
||
| ## Static analysis findings | ||
|
|
||
| Coverity static analysis report is available <a href="https://coverity.corp.mongodb.com/login">here</a>, under mongodb-csharp-driver project. | ||
|
|
||
| ## Signature information | ||
|
|
||
| Blocked on <https://jira.mongodb.org/browse/CSHARP-3050>. | ||
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.
Uh oh!
There was an error while loading. Please reload this page.