Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve scan and implement falsePositives #2911

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tvcsantos
Copy link

@tvcsantos tvcsantos commented Feb 18, 2024

This PR adds support for false positives on GitHub actions by implementing falsePositives action. This action works for the following SecHub CLI actions:

  • defineFalsePositives with input action specified as DEFINE.
  • markFalsePositives with input action specified as MARK.
  • unmarkFalsePositives with input action specified as UNMARK.

This PR also improves and fixes scan action to be fully working with the latest client version. Previous getReport was failing since getReport does not support the additional input --reportformat. According to documentation getReport on CLI always outputs in JSON. This PR fixes that.

In addition also improved CLI binaries release download by using GitHub tool cache, so that we can download and cache the tool in runners.

Closes: #2078

@CLA-Mercedes-Benz
Copy link

CLA-Mercedes-Benz commented Feb 18, 2024

CLA assistant check
All committers have signed the CLA.

@de-jcup
Copy link
Member

de-jcup commented Feb 21, 2024

@tvcsantos
Thank you for your contribution - currently I am still doing a rewrite of the github action inside #2864.

Unfortunately I have much parallel tasks to do at the moment and it will still take some time until #2864 is finally done.

When I am done with it, I would inform you inside the PR about further steps.
Hope this is okay for you?

@tvcsantos
Copy link
Author

@de-jcup Yup all good on my side 👍 . Feel free to ping me afterwards.

@tvcsantos tvcsantos force-pushed the feature/add-falsePositives-improve-scan branch from 36e9260 to c064054 Compare March 2, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "falsePositives" github action
3 participants