Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

ci: add working-tree scan to gitleaks security workflow

Nandakishor62553b07bcc6
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
index e6815264..60d87956 100644
--- a/.github/workflows/security.yml
+++ b/.github/workflows/security.yml
@@ -18,11 +18,24 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # gitleaks needs history to scan every commit in the PR
- - name: gitleaks
+ - name: gitleaks (diff)
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
+ # The action above only scans the commits in this push or PR. That misses a secret that
+ # entered on an earlier commit and is still sitting in the tree -- exactly how a CLI
+ # transcript quoting a PyPI token survived in main (removed in f0f4cf3). This second pass
+ # scans the checked-out files themselves, so anything present in HEAD is caught no matter
+ # which commit put it there.
+ - name: gitleaks (working tree)
+ run: |
+ VER=8.28.0
+ curl -sSL -o gitleaks.tar.gz \
+ "https://github.com/gitleaks/gitleaks/releases/download/v${VER}/gitleaks_${VER}_linux_x64.tar.gz"
+ tar -xzf gitleaks.tar.gz gitleaks
+ ./gitleaks dir . --no-banner --redact --exit-code 1
+
deps:
name: dependency CVEs
runs-on: ubuntu-latest