GithubHelp home page GithubHelp logo

checkmarx-cxflow-orb's People

Contributors

dhavalpatelpersistent avatar jay-nanduri avatar kmcdon83 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

jaypnanduri

checkmarx-cxflow-orb's Issues

Checkout issue

Orb Version

checkmarx-ts/[email protected]

Describe the bug

During the checkout step, the error states:

Either git or ssh (required by git to clone through SSH) is not installed in the image

$ docker run --rm -it --entrypoint /bin/sh checkmarx/cx-flow:latest

/app # which git
# [no output; missing git]
/app # which ssh
# [no output; missing ssh]
/app # exit

$ docker run --rm -it --entrypoint /bin/sh cimg/base:stable

$ which git
/usr/bin/git
$ which ssh
/usr/bin/ssh
$ exit

To Reproduce

Checkout the Orb

Expected behavior

Successful checkout step

Additional context

image in question: https://hub.docker.com/r/checkmarx/cx-flow

apply-filters default value is wrong

Orb Version
Latest

Describe the bug
The default for apply-filters:

  apply-filters:
    type: string
    default: "--filter-severity=High --filter-severity=Medium --filter-severity=Low"
    description: "Select report filter criteria"

The option --filter-severity does not exist, so a default config yaml file in the jar defaults the filter to High. A customer was scanning a project that had 0 highs and trying to push results to Jira, so no results would be created in Jira causing confusion.

We used this workaround in the config.yml:

apply-filters: '--cx-flow.filter-severity=High,Medium,Low,Informational'

To Reproduce

Scan a project with 0 high results, note the are no reported results if trying to update Jira.

Expected behavior
High, Medium, Low results appear in the issue tracker by default.

Prevent Circle CI Job Timeouts

Is your feature request related to a problem? Please describe.
The orb often times out when scans are queued. Circle CI times out at 10 minutes by default, and yes, I know about the no-output-timeout attribute added in 1.0.6

Describe the solution you'd like
However, the true solution should be to output some kind of logging to keep the job active and prevent Circle CI from timing it out. The SCA process does exactly that, can't the JSON and JIRA bug-tracker modes do that also?

Error: ApiVersionUnspecified while running checkmarx scan

Orb Version
1.0.4

Describe the bug
checkmax scan is expecting API version Information to be passed. The following error message is thrown

org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: [{
"error": {
"code": "ApiVersionUnspecified",
"message": "An API version is required, but was not specified."
}
}]

To Reproduce

Execute the work flow by running with the following circleci config

cx-scan:
executor: cxflow/default
steps:
- checkout
- cxflow/scan:
preset: 'Checkmarx Default'
report-file: checkmarx.json
team: '${CHECKMARX_TEAMID}'
project: '${CIRCLE_PROJECT_REPONAME}'
- store_artifacts:
path: checkmarx.json

Expected behavior

Workflow should complete successfully

Additional context

CheckMarx version: V8.9.0 HF24
The scan job exited with exit code 10

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.