Skip to content

CSHARP-5128 Update template_ssdlc_compliance_report.md with signing information #1344

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 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions evergreen/evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ functions:
params:
working_dir: "mongo-csharp-driver"
env:
NUGET_SIGN_CERTIFICATE_FINGERPRINT: ${NUGET_SIGN_CERTIFICATE_FINGERPRINT}
PRODUCT_NAME: "mongo-csharp-driver"
github_commit: ${github_commit}
script: |
Expand Down
2 changes: 2 additions & 0 deletions evergreen/generate-ssdlc-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -o errexit # Exit the script with error if any of the commands fail

# Environment variables used as input:
# NUGET_SIGN_CERTIFICATE_FINGERPRINT
# PRODUCT_NAME
# PACKAGE_VERSION
# github_commit
Expand Down Expand Up @@ -31,5 +32,6 @@ sed "${SED_EDIT_IN_PLACE_OPTION[@]}" \
-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" \
-e "s/\${NUGET_SIGN_CERTIFICATE_FINGERPRINT}/${NUGET_SIGN_CERTIFICATE_FINGERPRINT}/g" \
"${SSDLC_REPORT_PATH}"
ls "${SSDLC_REPORT_PATH}"
13 changes: 9 additions & 4 deletions evergreen/template_ssdlc_compliance_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ${PRODUCT_NAME} SSDLC compliance report

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>.
<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>
Expand Down Expand Up @@ -41,8 +41,7 @@ This information is available in multiple ways:

Blocked on <https://jira.mongodb.org/browse/CSHARP-5047>.

The MongoDB SSDLC policy is available at
<https://docs.google.com/document/d/1u0m4Kj2Ny30zU74KoEFCN4L6D_FbEYCaJ3CQdCYXTMc>.
The MongoDB SSDLC policy is available <a href="https://docs.google.com/document/d/1u0m4Kj2Ny30zU74KoEFCN4L6D_FbEYCaJ3CQdCYXTMc">here</a>.

## Third-darty dependency information

Expand All @@ -56,4 +55,10 @@ Coverity static analysis report is available <a href="https://coverity.corp.mong

## Signature information

Blocked on <https://jira.mongodb.org/browse/CSHARP-3050>.
Packages are signed with certificate with fingerprint: ${NUGET_SIGN_CERTIFICATE_FINGERPRINT}.
Signature can be validated by running ```dotnet nuget verify``` command.

For example signature of ```Mongodb.Driver.${PACKAGE_VERSION}.nupkg``` package can be verified by running:
```
dotnet nuget verify MongoDB.Driver.${PACKAGE_VERSION}.nupkg --certificate-fingerprint ${NUGET_SIGN_CERTIFICATE_FINGERPRINT}
```