ci-security-gate
Skill0 starsChanged 5 months agoMITView on GitHub
Wire security checks into CI as a blocking gate before merge/deploy. Use when the user wants to stop insecure code from shipping, is setting up GitHub Actions / GitLab CI security, or asks how to enforce secrets/dependency/SAST checks automatically.
In this repository8 other files it gives its agents.
- dependency-auditSkill
- dockerfile-hardeningSkill
- env-hygieneSkill
- sbom-generationSkill
- secret-rotationSkill
- secscanSkill
- secure-code-reviewSkill
- threat-modelSkill
The file
Files
ci-security-gate — block insecure code at the door
When to use
The user wants automated, enforced security in their pipeline so problems are caught before merge — not after an incident. The goal is a gate that fails the build on real issues without drowning the team in noise.
Process
- Choose the layers (cheap → deeper) and run them on every PR:
- Secrets / dangerous code: secscan (
secscan . --min-severity high) and/or gitleaks. - Dependencies: the ecosystem auditor + osv-scanner / grype.
- SAST: Semgrep (
semgrep --config auto) or CodeQL for deeper analysis. - IaC/containers (if relevant): trivy / checkov.
- Secrets / dangerous code: secscan (
- Set thresholds that fail the build (start strict only on the worst):
- Fail on: any committed secret, any reachable high/critical vuln, high-severity SAST.
- Warn (don't fail) on: low/medium, to avoid alert fatigue early on.
- Make it required: mark the security job as a required status check in branch protection so PRs can't merge red.
- Keep signal high: allow scoped, reviewed suppressions (e.g.
# secscan:ignore, semgrepnosemgrep) with a comment explaining why; review suppressions periodically. - Cache tool installs and run jobs in parallel so the gate stays fast (< a few min).
Example (GitHub Actions, blocking on high severity)
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Hayatelin/secscan-skill@v1
with: { path: ".", min-severity: "high" }
- run: pipx run osv-scanner scan .Pitfalls
- Failing on everything from day one → the team disables the gate. Ramp severity up.
- A gate that isn't a required check → it gets ignored.
- Slow gates (>5 min) get skipped; parallelize and cache.
Report back
Summarize which layers run, what fails vs warns, whether it's a required check, and the current pass/fail state.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

