What Happens When You Include These Templates?

include:
  - template: Code-Quality.gitlab-ci.yml
  - template: Jobs/SAST.gitlab-ci.yml

1. Code-Quality.gitlab-ci.yml

For Python projects, the Code Quality job usually runs a tool like flake8 or eslint (for JavaScript). GitLab’s default image for Code Quality is typically based on Node.js and other tools, but you can customize it.

The output is a code quality report — a JSON file (gl-code-quality-report.json) that GitLab uses to show inline feedback in merge requests (like highlighting lines that need fixing).


2. Jobs/SAST.gitlab-ci.yml


How Does It Work Internally?


Do These Templates Have Secure Coding Python Rules?