anchore / ci-tools

Contains scripts for running anchore engine in CI pipelines
Apache License 2.0
34 stars 34 forks source link

permission denied #39

Open oromojunior opened 4 years ago

oromojunior commented 4 years ago

The problem

When running in GitLab CI there

Environment

GitLab Ci on gitlab.com

Details

Actual Behaviour

$ 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

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:

robertp commented 4 years ago

@oromojunior Thank you for reporting this. Are you still encountering this issue?

mrigankt commented 3 years ago

hi guys I am facing this issue any solution to this?