Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Fix commit message single quote escaping on GitHub Action (#2259)
Helio Machadoa98a4de2fb5c
diff --git a/action.yml b/action.ymlindex 5262e6e47..749ce7b72 100644--- a/action.yml+++ b/action.yml@@ -31,6 +31,7 @@ runs:BASE: ${{ inputs.base }}HEAD: ${{ inputs.head }}ARGS: ${{ inputs.extra_args }}+ COMMITS: ${{ toJson(github.event.commits) }}run: |############################################ ADVANCED USAGE ##@@ -57,7 +58,7 @@ runs:##########################################elseif [ "${{ github.event_name }}" == "push" ]; then- COMMIT_LENGTH=$(jq length <<< '${{ toJson(github.event.commits) }}')+ COMMIT_LENGTH=$(printenv COMMITS | jq length)if [ $COMMIT_LENGTH == "0" ]; thenecho "No commits to scan"exit 0