OtherGitLab ComponentsFull

Full DevGuard Scan

This reusable workflow performs a comprehensive security scan of your codebase using DevGuard.
It includes:
  • Container Scanning
  • Static Application Security Testing (SAST)
  • Software Composition Analysis (SCA)
  • Secret Scanning
  • Infrastructure as Code (IaC) scanning
  • Image building
  • Image signing
  • Image deployment

The full-scan workflow accepts the following inputs:

NameDescriptionRequiredDefault Value
api_urlThe DevGuard API URLNohttps://api.main.devguard.org
asset_nameName of the asset to scanYes
tokenAPI token for authenticating with DevGuardYes
runner_tagsThe runner tags used to select appropriate CI runners.No""
scan_stageThe stage where the scan is runNotest
build_stageThe stage where the image is built and taggedNobuild
build_argsThe build arguments to pass to the Kaniko build command’No--context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile
deploy_stageThe stage where the scan is runNodeploy
small_artifact_registryPushes image directly to registry if artifact size is too large for GitLabNofalse
license_scanning_decision_fileThe path to the dependency decisions fileNo./docs/dependency_decisions.yml
license_scanning_environmentThe environment to scan [go, npm]Nogo
iac_config_fileThe path to the config file (e.g. checkov.yaml)No""

Usage Example: Here’s an example of how to call this component:

include:
- remote: "https://gitlab.com/l3montree/devguard/-/raw/main/templates/full.yml@main
  inputs:
    asset_name: "myOrgnaization/projects/myProject/assets/myAsset"
    token: "$DEVGUARD_TOKEN"