Skip to content

test again

test again #38

Workflow file for this run

name: Secret Leaks
on:
push:
jobs:
trufflehog:
runs-on: ubuntu-latest
steps:
- shell: bash
env:
JSON_STRING: ${{ toJson(github.event.commits) }}
run: |
if [ "${{ github.event_name }}" == "push" ]; then
printf '%s\n' "$JSON_STRING" > commit_info.json
echo "depth=$(($(jq length < commit_info.json) + 2))" >> $GITHUB_ENV
echo "branch=${{ github.ref_name }}" >> $GITHUB_ENV
fi
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "depth=$((${{ github.event.pull_request.commits }}+2))" >> $GITHUB_ENV
echo "branch=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
fi
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{env.branch}}
fetch-depth: ${{env.depth}}
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main