In addition to being used as a CLI, aactl
can also be used as a github action.
project
- (required) GCP Project IDsource
- (required) Full image path with tag or digestfile
- (required) Path to the vulnerability file
Below example, shows how to import vulnerabilities from previously generated report.
- name: 'Run aactl'
uses: docker://gcr.io/cloud-builders/aactl:latest
with:
args: vuln --project ${{ env.PROJECT_ID }} --source ${{ env.IMAGE_ID }} --file ${{ steps.scan.outputs.output }}
Fully working example can be found in on-push.yaml.