Closed denismakogon closed 5 years ago
Hey @denismakogon! You can specify a custom path for your policy bundle by using the policy_bundle_file_path
parameter. Like in this example (but with an actual path, I'm using "" here to use the default policy): https://github.com/anchore/ci-tools/blob/master/.circleci/config.yml#L34-L44
Let me know if this works for you.
okay, will try it out.
will close this, for now, might reopen if needed.
Follow-up on https://github.com/anchore/anchore-engine/issues/174
intro
CircleCI Anchore orb allows using a bundle file that stored at
.circleci/.anchore/policy_bundle.json
.However, there's a problem because
anchore/analyze_local_image
attempts to load custom bundle file from the following path:when at most of the times it's not there and here's very simple circleci job template that breaks anchore orb:
as you may notice, there's
working_directory: ~/go/src/github.com/fnproject/fdk-python
that changes working directory and make impossible to find bundle file for anchore: