Security scanning
Secrets, vulnerable dependencies and risky code: what is checked, push protection and bypasses, and how to fix or dismiss findings.
Every push to a CodePinion repository is checked for leaked credentials, and the default branch for vulnerable dependencies, risky code and risky files. A push that adds a live credential is stopped before it lands.
Open a repository's Settings → Security to see what was found and what to do about it.
What is checked
| Check | Looks at | Finds |
|---|---|---|
| Secrets | Every commit you push, on every branch. A full scan reads the whole history. | API keys and tokens (AWS, GitHub, OpenAI, Anthropic, Stripe, Slack, Google, CodePinion tokens and many more), private keys, secrets assigned to well-known variables |
| Dependencies | Lockfiles and manifests on the default branch: npm, pnpm, Yarn, pip, Poetry, uv, Go, Cargo, Bundler, Composer, Maven and more | Package versions with a published vulnerability, with the version that fixes it |
| Code | Source files on the default branch (Python, JavaScript, TypeScript, Go) | SQL and command injection, eval, unsafe deserialisation, disabled TLS checks, unverified JWTs, raw HTML injection, debug mode left on |
| Files | The default branch's file list | .env files, private key files, committed executables, very large files |
Dependencies are re-checked every day, because new advisories are published for code nobody touched.
Push protection
If a push adds a critical secret, a recognised credential format, the push is rejected and no branch moves. Git prints what was found:
remote: PUSH BLOCKED: CodePinion push protection found 1 secret in this push.
remote:
remote: - OpenAI project, service-account or admin API key
remote: config/settings.py:12 (commit 3f9c2a1b07) sk-p…a1f3
remote:
remote: To push, remove the secret from those commits (git commit --amend, or
remote: git rebase -i for older commits). If the key was real, revoke it now.
remote:
remote: If it is a test key or a false positive, a maintainer can allow it here:
remote: https://codepinion.co.ke/repos/my-app/settings?tab=security&bypass=…
The safest fix is to take the secret out of the commits and push again. If it was a real key, revoke it at the provider: anything pushed anywhere should be treated as leaked.
If the value is safe, a maintainer can open the link and allow it with a reason:
| Reason | What happens |
|---|---|
| It's used in tests | The push goes through and the finding is closed as used in tests. |
| It's a false positive | The push goes through and the finding is closed as a false positive. |
| I'll fix it later | The push goes through and the finding stays open, so the repository is quarantined until the secret is removed or an admin closes it. |
An allowed secret passes for one hour. The repository's maintainers are notified of every bypass.
In your pipelines
To check every branch before it is merged or deployed, add a security_scan: job to a workflow. It fails when the change introduces a problem at or above the severity you choose, ignoring what is already on the default branch, and writes the codepinion/security check. List that check under Required status checks to block merges until it passes. See Security scan.
Repository states
| State | Means |
|---|---|
| Clean | Nothing is open. |
| Needs review | Something is open. Nothing is blocked. |
| Quarantined | A live credential is on a branch. Workspace edits and pushes, terminals, previews, AI edits and deploys are paused until it is removed or an admin closes the finding. |
A secret that is deleted from every branch stays open as in history only: anyone who can clone can still read it. It no longer quarantines the repository, but rotate the key and close the finding as revoked.
Severity
| Severity | Examples |
|---|---|
| Critical | A committed credential; a dependency vulnerability scored 9.0 or above |
| High | A heuristic secret match; command or SQL injection; a dependency scored 7.0 to 8.9 |
| Medium | Unsafe deserialisation, disabled TLS checks, debug mode on; a dependency scored 4.0 to 6.9; a committed .env or key file |
| Low | Weak hashes, committed binaries, large files; a dependency scored below 4.0 |
Fixing and dismissing findings
Each finding says where it is and how to fix it. Fixed dependency, code and file findings close by themselves when the next scan doesn't see them. Secrets never close by themselves, because deleting a key doesn't unpublish it.
When a finding is not a problem, dismiss it with a reason: revoked or rotated, used in tests, false positive or won't fix. A dismissed finding stays dismissed when it is seen again. You can reopen it at any time.
| Role | Can |
|---|---|
| Contributor | See findings |
| Maintainer | Rescan, dismiss and reopen findings, change scanner settings, allow a blocked push |
| Admin, owner | Everything above, plus dismissing a committed credential (which lifts a quarantine) |
Scanner settings
Each check can be switched off under Scanners. Add ignored paths, one glob per line such as tests/fixtures/**, to skip generated or fixture files. A .gitleaksignore file on the default branch is honoured too.
Notifications
| You get | When |
|---|---|
| Your push was security-scanned | After every push you make: clean, nothing new, or what was found. In-app only, by default. |
| New security findings | When a scan finds something new in a repository you maintain. |
| Push blocked | When your push, or one to a repository you maintain, is rejected. |
| Push protection bypassed, Critical finding dismissed | When someone else makes that call in a repository you maintain. |
| Repository quarantined | When a repository you maintain or pushed to is quarantined. |
Change the email and in-app choices for each under Settings → Notifications (requires sign-in).
Across repositories
The Security review queue (requires sign-in) lists open findings across every repository you can manage, for triage.