You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
CoGuard Scan Action
PublicRelease2
This action is scanning Docker images using the coguard-cli.
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 }}
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 |
You can either register on https://portal.coguard.io or by running the coguard-cli locally.