glsec
Security linter for GitLab CI/CD pipelines. glsec reads .gitlab-ci.yml and
reports mutable images, unpinned includes, hardcoded secrets, script
injection, token exfiltration, unrestricted OIDC tokens and more, mapped to
the OWASP Top 10 CI/CD Security Risks. It runs offline and needs no access to
your GitLab instance.
pipx install glsec # or: uv tool install glsec
uvx glsec .gitlab-ci.yml
This package ships the prebuilt binary of the GitHub release with the same
version; the archive it was taken from carries build provenance from the
release workflow. Documentation, rules and other install methods:
https://github.com/glsec/glsec