Full DevGuard Scan Gitlab Component

This reusable workflow performs a comprehensive security scan of your codebase using DevGuard. It includes:

The full-scan component accepts the following inputs:

NameDescriptionRequiredDefault Value
api_urlThe DevGuard API URLNohttps://api.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: "myOrganization/projects/myProject/assets/myAsset"
    token: "$DEVGUARD_TOKEN"