Skip to content

Commit

Permalink
Enhance GitHub Dependency Snapshot upload (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
abriko committed Jun 5, 2023
1 parent f96f79a commit dedfa59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Expand Up @@ -169,6 +169,8 @@ if [ "$skipFiles" ];then
fi

trivyConfig=$(echo $trivyConfig | tr -d '\r')
# To make sure that uploda GitHub Dependency Snapshot succeeds, disable the script that fails first.
set +e
if [ "${format}" == "sarif" ] && [ "${limitSeveritiesForSARIF}" != "true" ]; then
# SARIF is special. We output all vulnerabilities,
# regardless of severity level specified in this report.
Expand All @@ -186,6 +188,7 @@ else
returnCode=$?
fi

set -e
if [[ "${format}" == "github" ]]; then
if [[ "$(echo $githubPAT | xargs)" != "" ]]; then
printf "\n Uploading GitHub Dependency Snapshot"
Expand Down

0 comments on commit dedfa59

Please sign in to comment.