Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(nightly): add TruffleHog full-history secret scan

justina804174cd098
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 88bc3a073..be2244ca2 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -14,6 +14,29 @@ permissions:
contents: read
jobs:
+ secret-scan-history:
+ name: Full-history secret scan
+ if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
+ runs-on: blacksmith-4vcpu-ubuntu-2404
+ timeout-minutes: 15
+ steps:
+ - name: Checkout repository
+ uses: useblacksmith/checkout@v1 # v7.0.1
+ with:
+ persist-credentials: false
+ # The entire-branch scan needs the full commit history.
+ fetch-depth: 0
+ - name: Scan the full git history for leaked credentials
+ uses: trufflesecurity/trufflehog@4dd8831c5f12599465d4d45c3c447b4018a34c85 # v3.97.9
+ with:
+ # Empty base scans every commit on the branch, not just new ones.
+ base: ""
+ head: ${{ github.ref_name }}
+ # Report only verified and unknown results; skip unverified false positives.
+ # .trufflehog-exclude allowlists files carrying placeholder credentials
+ # (compose examples, docs, generated CONTRIBUTORS.svg, tests).
+ extra_args: --results=verified,unknown --exclude-paths=.trufflehog-exclude
+
verify:
name: Verify nightly build
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}