CI secret gate
The GitHub App can fail a pull request when a key is committed. You can also fail CI on the checkout itself.
- Copy
scripts/ci-secret-gate.mjsinto your repo. - Copy
.github/workflows/invince-secret-gate.example.ymlinto.github/workflows/. - Locally,
npm run security:gateis the same scan. git config core.hooksPath .githooksruns it before each commit.
That scan stays on GitHub’s runner (or your machine). It does not send the secret to Invince as a stored value.