Open oromojunior opened 4 years ago
When running in GitLab CI there
GitLab Ci on gitlab.com
$ anchore_ci_tools.py -a -r --timeout 500 --image $CI_REGISTRY/hello-world:v1.99.99
Image submitted to Anchore Engine: hello-world:v1.99.99 Waiting for analysis to complete... Status: not_analyzed Status: analyzing.. Status: analyzed Analysis completed! ERROR executing script - Exception: [Errno 13] Permission denied: 'anchore-reports/hello-world_v1.99.99-content-os.json' Authenticating with credentials from /root/.docker/config.json 00:02 Uploading artifacts... anchore-reports/*: found 5 matching files Uploading artifacts to coordinator... ok id=12274 responseStatus=201 Created token=o2iy3TDJ ERROR: Job failed: exit code 1
container_scan_service: stage: Scan variables: ANCHORE_CLI_URL: "http://anchore-engine:8228/v1" GIT_STRATEGY: none image: docker.io/anchore/inline-scan:latest services:
name: docker.io/anchore/inline-scan:latest alias: anchore-engine command: ["start"]
script:
anchore_ci_tools.py -a -r --timeout 500 --image $CI_REGISTRY/hello-world:v1.99.99
artifacts: when: always name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME} paths:
@oromojunior Thank you for reporting this. Are you still encountering this issue?
hi guys I am facing this issue any solution to this?
The problem
When running in GitLab CI there
Environment
GitLab Ci on gitlab.com
Details
Actual Behaviour
Image submitted to Anchore Engine: hello-world:v1.99.99 Waiting for analysis to complete... Status: not_analyzed Status: analyzing.. Status: analyzed Analysis completed! ERROR executing script - Exception: [Errno 13] Permission denied: 'anchore-reports/hello-world_v1.99.99-content-os.json' Authenticating with credentials from /root/.docker/config.json 00:02 Uploading artifacts... anchore-reports/*: found 5 matching files
Uploading artifacts to coordinator... ok id=12274 responseStatus=201 Created token=o2iy3TDJ ERROR: Job failed: exit code 1
Expected Behaviour
How do you reproduce the error?
container_scan_service: stage: Scan variables: ANCHORE_CLI_URL: "http://anchore-engine:8228/v1" GIT_STRATEGY: none image: docker.io/anchore/inline-scan:latest services:
name: docker.io/anchore/inline-scan:latest alias: anchore-engine command: ["start"]
script:
anchore_ci_tools.py -a -r --timeout 500 --image $CI_REGISTRY/hello-world:v1.99.99
artifacts: when: always name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME} paths: