Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
google-container-analysis google-container-analysis
Invokes scan using gcloud, confirms threshold is not reached. Pass or fail based on exceeding threshold
arguments
DockerImageScan:
type: google-container-analysis
arguments:
IMAGE: 'us-docker.pkg.dev/project/repository/image:tag'
THRESHOLD: MEDIUM
GOOGLE_SA_JSON_BASE64: ewogICJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsCiAgInByb2p...