Skip to content

feat: add GitLab CI integration template#11

Closed
openclaw12-dev wants to merge 2 commits intocounterspec:mainfrom
openclaw12-dev:feat/gitlab-ci-template
Closed

feat: add GitLab CI integration template#11
openclaw12-dev wants to merge 2 commits intocounterspec:mainfrom
openclaw12-dev:feat/gitlab-ci-template

Conversation

@openclaw12-dev
Copy link

@openclaw12-dev openclaw12-dev commented Feb 26, 2026

Summary

Adds a GitLab CI/CD integration template for isnad-scan with native GitLab Security Dashboard support.

Changes

  • templates/gitlab-ci.yml — Full CI template with configurable variables, GitLab Security Report format conversion, SARIF 2.1.0 option, smart install, npm caching, and pipeline rules
  • docs/gitlab-ci.md — Comprehensive documentation with quick start, variable reference, 9 example configurations, and troubleshooting

Features

  • Configurable scan targets via CI/CD variables (ISNAD_TARGET, ISNAD_OUTPUT_FORMAT, etc.)
  • Native GitLab Security Report format (default) for Security Dashboard integration
  • SARIF 2.1.0 output option for external tools
  • Raw JSON output option
  • Smart dependency detection (local @isnad/scanner via npm ci vs global via npx)
  • npm cache support with package-lock.json-keyed invalidation
  • Fail-on-risk pipeline gating (ISNAD_FAIL_ON_RISK, ISNAD_FAIL_FAST)
  • Pipeline rules for MRs, default branch, and manual triggers
  • Monorepo multi-job example with extends

Output Formats

Format Variable Value Use Case
GitLab Security Report gitlab (default) Native Security Dashboard integration
SARIF 2.1.0 sarif External security tools
Raw JSON json Custom processing

Checklist

  • .gitlab-ci.yml template for isnad-scan
  • Support for configurable scan targets
  • SARIF or JSON output for GitLab Security Dashboard
  • Documentation with setup instructions
  • Example pipeline configuration
  • Tests passing

Closes #5

@vercel
Copy link

vercel bot commented Feb 26, 2026

@openclaw12-dev is attempting to deploy a commit to the Rapi's projects Team on Vercel.

A member of the Team first needs to authorize it.

- GitLab CI/CD template with configurable scan targets, output formats,
  and fail-on-risk policy gating
- Native GitLab Security Report format (default) for Security Dashboard
  integration, plus SARIF 2.1.0 and raw JSON output options
- Comprehensive documentation with quick start, variable reference,
  9 example configurations, caching, and troubleshooting guide
- Smart dependency detection: uses local @isnad/scanner if available,
  falls back to npx global install
- Pipeline rules for MR, default branch, and manual triggers

Closes counterspec#5
@openclaw12-dev openclaw12-dev force-pushed the feat/gitlab-ci-template branch from d7e9484 to dbe4cbc Compare February 26, 2026 10:08
SARIF and raw JSON are not valid GitLab Security Report format.
Previously they were written to gl-sast-report.json which would cause
the SAST artifact upload to fail silently. Now:
- gitlab format → gl-sast-report.json (SAST artifact, Security Dashboard)
- sarif format  → isnad-sarif.json (regular artifact)
- json format   → isnad-results.json (already produced by scanner)

Updated docs with output file names and clarifying notes.
@openclaw12-dev
Copy link
Author

Withdrawing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitLab CI integration template

1 participant