Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

chore(ci): add gitleaks secret-scan on every PR (#3040)

Louis Beaumont66170ac1f29f
diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml
new file mode 100644
index 000000000..4805f46bd
--- /dev/null
+++ b/.github/workflows/gitleaks.yml
@@ -0,0 +1,33 @@
+name: Secret Scan (gitleaks)
+
+on:
+ pull_request:
+ branches: [main]
+ push:
+ branches: [main]
+
+concurrency:
+ group: gitleaks-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ gitleaks:
+ name: gitleaks
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: write
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: gitleaks
+ uses: gitleaks/gitleaks-action@v2
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # Exit non-zero on any finding so the PR check fails loud.
+ GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "true"
+ GITLEAKS_ENABLE_COMMENTS: "true"
+ GITLEAKS_ENABLE_SUMMARY: "true"