Giter Club home page Giter Club logo

Comments (8)

danielflookovo avatar danielflookovo commented on July 19, 2024 1

This has been published as ovotech/[email protected].

from circleci-orbs.

danielflookovo avatar danielflookovo commented on July 19, 2024

It works for me. Do you have a circleci config and logs you can share?

from circleci-orbs.

skjolber avatar skjolber commented on July 19, 2024

Hi, we're not doing to much fancy, but we are using a private repository.

jobs:
  container_vulnerability_scan:
    executor: clair/default
    steps:
      - checkout
      - attach_workspace:
          at: .
      - run: *gcp-docker-login
      - clair/scan:
          image_file: "./gcr.image.version"

where the ./gcr.image.version contains the full /<repo>/<project>/<repo>:<tag>. The default file path is really not a path that would normally be available in a normal linux installation - where does the report go in your testing?

from circleci-orbs.

danielflookovo avatar danielflookovo commented on July 19, 2024

The report gets stored as a circleci artifact. Do you also need to read it from the filesystem?

from circleci-orbs.

danielflookovo avatar danielflookovo commented on July 19, 2024

I have made a change so clair reports will be saved at /clair-reports/<image_name>.json inside the build container (They will also be uploaded as circleci artifacts at the same path).
The image name includes any custom registry, e.g. /clair-reports/361339499037.dkr.ecr.eu-west-1.amazonaws.com/pe-orbs:latest.

Can you test if this works for your use case using orb version ovotech/clair-scanner@dev:report-path-fix?

from circleci-orbs.

skjolber avatar skjolber commented on July 19, 2024

@danielflookovo it now works. We would be okey with a static filename, probably we'd just parse and post the result to slack or something like that. Would it be possible to support the input parameter though, with the current functionality as the default?

from circleci-orbs.

danielflookovo avatar danielflookovo commented on July 19, 2024

The specified image_file can have multiple images listed, each with a separate report. A static filename doesn't make much sense there.

from circleci-orbs.

skjolber avatar skjolber commented on July 19, 2024

@danielflookovo ok, I see your point.

from circleci-orbs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.