From 3bf76eeddb016dd8b4c052bee9b70eb6e07e11fe Mon Sep 17 00:00:00 2001 From: artmakh Date: Wed, 27 Nov 2024 17:56:22 +0700 Subject: [PATCH] Add secret scanner --- .github/workflows/secrets_scanner.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/secrets_scanner.yaml diff --git a/.github/workflows/secrets_scanner.yaml b/.github/workflows/secrets_scanner.yaml new file mode 100644 index 0000000..205477f --- /dev/null +++ b/.github/workflows/secrets_scanner.yaml @@ -0,0 +1,19 @@ +name: Leaked Secrets Scan +on: + pull_request: + merge_group: +jobs: + TruffleHog: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + fetch-depth: 0 + - name: TruffleHog OSS + uses: trufflesecurity/trufflehog@7e78ca385fb82c19568c7a4b341c97d57d9aa5e1 # v3.82.2 + with: + path: ./ + base: ${{ github.event.repository.default_branch }} + head: HEAD + extra_args: --debug --only-verified