Merge pull request #69 from soliplex/chore/version-0.82.2+33 #105
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.1 | |
| 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:" | |
| } |