]> khamidou — GitHub mirrors - safetensors.git/commitdiff
feat(ci): add trufflehog secrets detection (#484)
authorLuc Georges <McPatate@users.noreply.github.com>
Mon, 29 Jul 2024 16:52:41 +0000 (18:52 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Jul 2024 16:52:41 +0000 (18:52 +0200)
* feat(ci): add trufflehog secrets detection

* fix(ci): remove unnecessary permissions

.github/workflows/trufflehog.yml [new file with mode: 0644]

diff --git a/.github/workflows/trufflehog.yml b/.github/workflows/trufflehog.yml
new file mode 100644 (file)
index 0000000..9cbbf68
--- /dev/null
@@ -0,0 +1,15 @@
+on:
+  push:
+
+name: Secret Leaks
+
+jobs:
+  trufflehog:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout code
+      uses: actions/checkout@v4
+      with:
+        fetch-depth: 0
+    - name: Secret Scanning
+      uses: trufflesecurity/trufflehog@main