GitLab Secure Experience Guide SAST, DAST, SCA etc


Here’s a comprehensive, hands-on tutorial to help you explore and experience all the features listed under the Secure section of GitLab using a sample project.

๐ Full GitLab Secure Experience Guide (GitLab SaaS – Free or Ultimate Tier)
๐งช Sections Covered:
- Security Dashboard
- Vulnerability Report
- Dependency List
- Audit Events
- Compliance Center
- Policies
- On-Demand Scans
- Security Configuration
๐ฆ Sample Repo:
gitlab-examples/security-reports
https://gitlab.com/gitlab-examples/security
โ Youโll fork and run security pipelines on this to explore all Secure features.
๐ ๏ธ Prerequisites
- GitLab account (preferably Ultimate tier for all features)
- Fork access to gitlab-examples/security-reports
- CI/CD runners enabled (shared runners on GitLab.com are fine)
- Enable container registry (if testing container scanning)
โ Step-by-Step Walkthrough
๐ STEP 1: Fork the Repo
- Visit gitlab-examples/security-reports
- Click Fork
- Choose your namespace or group
โ๏ธ STEP 2: Enable Security Features
- Go to Secure โ Security Configuration
- Enable each of the following (GitLab creates
.gitlab-ci.ymlsnippets for you):- โ SAST
- โ Dependency Scanning
- โ Secret Detection
- โ DAST (Needs a deployed URL)
- โ Container Scanning (Requires Docker image build)
- โ License Compliance
- โ Coverage Fuzzing
- โ API Fuzzing
๐ก Tip: Ensure CI/CD โ General pipeline settings โ Auto DevOps is disabled (to avoid conflicts with .gitlab-ci.yml).
โถ๏ธ STEP 3: Trigger the Pipeline
- Push a commit or go to CI/CD > Pipelines and click Run pipeline
- Wait for the full security pipeline to complete
- Each tool (SAST, DAST, etc.) generates artifacts GitLab uses in Secure dashboards
๐ก๏ธ STEP 4: Explore Secure Menu Options
โ 1. Security Dashboard
- Navigate:
Secure > Security Dashboard - See:
- Open vulnerabilities by severity
- Merge requests with unresolved issues
- Projects under your namespace grouped by security posture
โ 2. Vulnerability Report
- Navigate:
Secure > Vulnerability Report - View all findings from your pipeline:
- SAST, DAST, Container, Dependency scans
- Use filters to sort by:
- Severity
- Scanner type
- Status (detected, dismissed, resolved)
โ 3. Dependency List
- Navigate:
Secure > Dependency List - Shows a full tree of project dependencies (pulled from your
package.json,pom.xml, etc.) - Any library with known vulnerabilities is flagged
โ 4. Audit Events
- Navigate:
Secure > Audit Events - Shows:
- Group/project-level permission changes
- Settings changes
- Login attempts, pipeline trigger activity
- Enterprise feature (requires Ultimate Tier)
โ 5. Compliance Center
- Navigate:
Secure > Compliance Center - Create compliance pipelines (separate from project pipelines)
- Enforce MR approval rules
- View audit compliance reports
- Monitor adherence to internal policies
โ 6. Policies
- Navigate:
Secure > Policies - Types of policies:
- Scan Execution Policies (e.g., always run secret detection)
- Scan Result Policies (e.g., block merge if high vulnerability)
- Click โNew Policyโ
- Use GUI to define:
- Trigger condition
- Actions (e.g., approve requirement, MR block)
โ 7. On-Demand Scans
- Navigate:
Secure > On-Demand Scans - Great for ad hoc DAST/API scans
- Choose:
- Target site URL (for DAST)
- OpenAPI spec (for API fuzzing)
- No CI/CD pipeline required
โ 8. Security Configuration
- Navigate:
Secure > Security Configuration - All tools toggled here
- Edit variables, scan schedules, timeouts
- Links to pipelines that used each security tool
๐ OPTIONAL: Enable Advanced Features
- Enable
License Compliance - Build & scan Docker images โ View Container Scanning results
- Add intentionally vulnerable code/libraries to test deeper scanning
๐ STEP 5: Automate Reporting (Optional)
You can set up email reports or export results via API:
- GitLab Vulnerability API
- Export JSON โ Use in dashboards like Grafana or Google Sheets
๐ Learning Summary
By the end of this guide, youโve:
โ๏ธ Enabled full suite of GitLab Secure features
โ๏ธ Explored each report and dashboard
โ๏ธ Configured On-Demand scans and Policies
โ๏ธ Seen real security results and recommendations
Iโm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at WIZBRAND
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals