Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

CoGuard Scan Action

PublicRelease2

CoGuard Scan Action

package

CoGuard Scan Action

Discovers known configuration files in Docker images or repositories, and scans them using CoGuard

Installation

Copy and paste the following snippet into your .yml file.

              

- name: CoGuard Scan Action

uses: coguardio/coguard-scan-action@PublicRelease2

Learn more about this action in coguardio/coguard-scan-action

Choose a version

Coguard Docker Image Scan Action

This action is scanning Docker images using the coguard-cli.

Example usage

name: Including CoGuard into your GitHub Action
on: [push]
jobs:
  create-image-and-run-coguard:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Build your docker image
        run: |
          echo "Your build commands go here"

      - name: Run the CoGuard CLI Action
        uses: actions/coguard-docker-image-scan
        with:
          dockerImageName: YourImageName
          username: ${{ secrets.CoGuardUserName }}
          password: ${{ secrets.CoGuardPassword }}

Parameters which this action accepts

Parameter type meaning required default
dockerImageName string The Docker image name which the CoGuard CLI should scan. true N/A
failLevel int The minimum level of severity of failed checks to fail this build. false 1
username string The username as registered on coguard.io. If you are not registered, please go to https://portal.coguard.io, and click on "Log In" to register. true N/A
password string The password for the user identified by username. false N/A

How to obtain a CoGuard account

You can either register on https://portal.coguard.io or by running the coguard-cli locally.