OtherGitHub WorkflowsFull

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 deploy step runs only if the following jobs complete successfully:
build-image, container-scanning, software-composition-analysis, sast, and secret-scanning.

The full-scan workflow accepts the following inputs:

NameDescriptionRequiredDefault Value
api-urlURL of the DevGuard APINohttps://api.main.devguard.org
asset-nameName of the asset to be scannedYes
pathPath to the source code to be scannedNo.
image-destination-pathDestination of the image.tar file. Only necessary if deploy reusable workflow is not used and you would like to do further processing of the builded image.tar’Noimage.tar
imageOCI image name, includes the tag nameNo
image-suffixSuffix for the image name. You probably need this if you are building multiple images. For example building a -scanner image and a -web image.No''
disable-artifact-registry-as-image-storeIf the artifact size is too big for your github usage quota, set this to true. This will push the image directly to the registry instead of uploading it as artifact.Nofalse
should-deployShould the deploy job runNotrue

Usage Example: Here’s an example of how to call this reusable workflow from another workflow file:

name: DevGuard Workflow
 
on:
    push
 
jobs:
    devguard-full-scan:
        uses: l3montree-dev/devguard-action/.github/workflows/full.yml@main
        with:
          api-url: https://api.main.devguard.org
          asset-name: 'myOrgnaization/projects/myProject/assets/myAsset'
        secrets:
          devguard-token: ${{ secrets.DEVGUARD_TOKEN }}