Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Jun 17, 2024
1 parent 71f6cef commit fecfcb2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ called `ssdlc_compliance_report.md`.
uses: mongodb-labs/drivers-github-tools/compliance-report@v2
```

There are several ways to specify the security report:
- By specifying an absolute URL starting with https
- By specifying a relative path, which is then linked to the corresponding git blob for the tagged version
- By adding the `security-report-url` to the AWS Secrets Vault

## Full Report

This action is a convenience function to handle all of the SSDLC reports and put them
Expand Down
6 changes: 2 additions & 4 deletions compliance-report/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ elif [ -n "$SECURITY_REPORT_URL" ]; then
SECURITY_REPORT="See $SECURITY_REPORT_URL"
fi

cat << EOF >> ${S3_ASSETS}/ssdlc_compliance_report.md
cat << EOF >> ${S3_ASSETS}/ssdlc_compliance_report.txt
Release Creator
${RELEASE_CREATOR}
Expand All @@ -42,6 +42,4 @@ ${SECURITY_REPORT}
Known Vulnerabilities
Any vulnerabilities that may be shown in the files referenced above have been reviewed and accepted by the appropriate approvers.
EOF

cat ${S3_ASSETS}/ssdlc_compliance_report.md
EOF
5 changes: 4 additions & 1 deletion setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ for var in $vars; do
done

echo "::group::Set up artifactory"
ARTIFACTORY_USERNAME=${ARTIFACTORY_USERNAME_INPUT:-ARTIFACTORY_USERNAME}
ARTIFACTORY_USERNAME=${ARTIFACTORY_USERNAME}
if [ -n "${ARTIFACTORY_USERNAME_INPUT}" ]; then
ARTIFACTORY_USERNAME=$ARTIFACTORY_USERNAME_INPUT
fi
echo $ARTIFACTORY_PASSWORD | podman login -u $ARTIFACTORY_USERNAME --password-stdin $ARTIFACTORY_REGISTRY
echo "::endgroup::"

Expand Down

0 comments on commit fecfcb2

Please sign in to comment.