I’m getting WARNING: gl-container-scanning-report.json: no matching files. Ensure that the artifact path is relative to the working directory
when running this pipeline:
include:
- template: Security/Container-Scanning.gitlab-ci.yml
container_scanning:
stage: scanning-container
variables:
CS_IMAGE: $IMAGE_NAME:$IMAGE_TAG
CS_REGISTRY_USER: admin
CS_REGISTRY_PASSWORD: $REGISTRY_PASS
CS_DOCKER_INSECURE: “true”
CS_REGISTRY_INSECURE: “true”
CS_SEVERITY_THRESHOLD: $SEVERITY_LEVEL
rules:
- if: $CONTAINER_SCANNING_DISABLED
when: never
- if: $CI_COMMIT_BRANCH &&
$CI_GITLAB_FIPS_MODE == “true” &&
$CS_ANALYZER_IMAGE !~ /-(fips|ubi)\z/
variables:
CS_IMAGE_SUFFIX: -fips
- if: $CI_COMMIT_BRANCH == “master” ||
$CI_COMMIT_BRANCH == “main” ||
$CI_COMMIT_BRANCH == “develop” ||
$CI_COMMIT_BRANCH =~ /^release// ||
$CI_COMMIT_BRANCH =~ /^hotfix//
It was running, but now it’s broken and I cannot find the reason because I have not changed anything.
This runs in an onprem Gitlab instance.