We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f925d99 commit c47a1cbCopy full SHA for c47a1cb
.github/workflows/trufflehog.yml
@@ -10,7 +10,8 @@ jobs:
10
- shell: bash
11
run: |
12
if [ "${{ github.event_name }}" == "push" ]; then
13
- echo "depth=$(($(jq length <<< '${{ toJson(github.event.commits) }}') + 2))" >> $GITHUB_ENV
+ json_string=${{ toJson(github.event.commits) }}
14
+ echo "depth=$(($(jq length <<< '$json_string') + 2))" >> $GITHUB_ENV
15
echo "branch=${{ github.ref_name }}" >> $GITHUB_ENV
16
fi
17
if [ "${{ github.event_name }}" == "pull_request" ]; then
0 commit comments