Skip to content

Commit a16bebc

Browse files
Update secret-scan (#170)
* Update secret-scan Pull the release and tag dynamically, n-1 from the latest release * fix github output
1 parent 18b83a3 commit a16bebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/secret-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
# echo "latest_tag_name=$LATEST_TAG_NAME" >> "$GITHUB_OUTPUT"
2424
# echo "latest_release=$LATEST_RELEASE" >> "$GITHUB_OUTPUT"
2525
run: |
26-
echo "latest_tag_name=v3.89.2" >> "$GITHUB_OUTPUT"
27-
echo "latest_release=3.89.2" >> "$GITHUB_OUTPUT"
26+
echo "latest_tag_name=$(curl -s https://api.github.com/repos/trufflesecurity/trufflehog/releases | jq -r '.[1].tag_name')" >> "$GITHUB_OUTPUT"
27+
echo "latest_release=$(curl -s https://api.github.com/repos/trufflesecurity/trufflehog/releases | jq -r '.[1].tag_name | ltrimstr("v")')" >> "$GITHUB_OUTPUT"
2828
- name: Download and verify TruffleHog release
2929
run: |
3030
curl -sLO https://github.com/trufflesecurity/trufflehog/releases/download/${{ steps.trufflehog_release.outputs.latest_tag_name }}/trufflehog_${{ steps.trufflehog_release.outputs.latest_release }}_checksums.txt

0 commit comments

Comments
 (0)