Skip to content

Merge pull request #420 from soliplex/chore/version-0.93.0+66 #746

Merge pull request #420 from soliplex/chore/version-0.93.0+66

Merge pull request #420 from soliplex/chore/version-0.93.0+66 #746

Workflow file for this run

name: TruffleHog Secrets Scan
on:
push:
branches:
- '**'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
trufflehog:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: TruffleHog scan
uses: trufflesecurity/trufflehog@main
with:
extra_args: --only-verified
notify-failure:
runs-on: ubuntu-latest
needs: [trufflehog]
if: failure()
timeout-minutes: 2
steps:
- name: Notify Slack on failure
uses: slackapi/slack-github-action@v3.0.3
env:
REF_NAME: ${{ github.head_ref || github.ref_name }}
COMMIT_MSG: ${{ github.event.head_commit.message }}
RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
webhook: ${{ secrets.SLACK_NOTIFY_URL }}
webhook-type: incoming-webhook
payload: |
{
"channel": "#soliplex",
"username": "soliplex",
"text": ":rotating_light: ${{ github.workflow }} failed on ${{ env.REF_NAME }}:\n${{ env.COMMIT_MSG }}\n${{ env.RUN_URL }}",
"icon_emoji": ":ghost:"
}