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

Adding support for CheckmarxOne platform #4317

Merged
merged 85 commits into from
May 5, 2023
Merged

Conversation

michaelkubiaczyk
Copy link
Contributor

Changes

New checkmarxOneExecuteScan added supporting SAST scans in CheckmarxOne platform.

  • Tests - basic tests adapted from previous CheckmarxExecuteScan step
  • Documentation - step-specific parameters documented in the YAML

Developed in co-operation between Checkmarx and SAP.

resources/metadata/checkmarxOneExecuteScan.yaml Outdated Show resolved Hide resolved
resources/metadata/checkmarxOneExecuteScan.yaml Outdated Show resolved Hide resolved
resources/metadata/checkmarxOneExecuteScan.yaml Outdated Show resolved Hide resolved
cmd/checkmarxOneExecuteScan.go Show resolved Hide resolved
cmd/checkmarxOneExecuteScan.go Outdated Show resolved Hide resolved
cmd/checkmarxOneExecuteScan.go Outdated Show resolved Hide resolved
cmd/checkmarxOneExecuteScan.go Outdated Show resolved Hide resolved
@thtri thtri requested review from sumeetpatil and thtri and removed request for thtri May 4, 2023 16:24
@thtri
Copy link
Member

thtri commented May 4, 2023

/it-go

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@thtri
Copy link
Member

thtri commented May 5, 2023

/it-go

@thtri thtri merged commit d12f01d into SAP:master May 5, 2023
maxatsap pushed a commit to maxatsap/jenkins-library that referenced this pull request Jul 23, 2024
* Initial in progress

* compiling but not yet functional

* Missed file

* updated checkmarxone step

* Working up to fetching a project then breaks

* Missed file

* Breaks when retrieving projects+proxy set

* Create project & run scan working, now polling

* Fixed polling

* added back the zipfile remove command

* Fixed polling again

* Generates and downloads PDF report

* Updated and working, prep for refactor

* Added compliance steps

* Cleanup, reporting, added groovy connector

* fixed groovy file

* checkmarxone to checkmarxOne

* checkmarxone to checkmarxOne

* split credentials (id+secret, apikey), renamed pullrequestname to branch, groovy fix

* Fixed filenames & yaml

* missed the metadata_generated.go

* added json to sarif conversion

* fix:type in new checkmarxone package

* fix:type in new checkmarxone package

* removed test logs, added temp error log for creds

* extra debugging to fix crash

* improved auth logging, fixed query parse issue

* fixed bug with group fetch when using oauth user

* CWE can be -1 if not defined, can't be uint

* Query also had CweID

* Disabled predicates-fetch in sarif generation

* Removing leftover info log message

* Better error handling

* fixed default preset configuration

* removing .bat files - sorry

* Cleanup per initial review

* refactoring per Gist, fixed project find, add apps

* small fix - sorry for commit noise while testing

* Fixing issues with incremental scans.

* removing maxretries

* Updated per PR feedback, further changes todo toda

* JSON Report changes and reporting cleanup

* removing .bat (again?)

* adding docs, groovy unit test, linter fixes

* Started adding tests maybe 15% covered

* fix(checkmarxOne): test cases for pkg and reporting

* fix(checkmarxOne):fix formatting

* feat(checkmarxone): update interface with missing method

* feat(checkmarxone):change runStep signature to be able to inject dependency

* feat(checkmarxone): add tests for step (wip)

* Adding a bit more coverage

* feat(checkmarxOne): fix code review

* feat(checkmarxOne): fix code review

* feat(checkmarxOne): fix code review

* feat(checkmarxOne): fix integration test PR

---------

Co-authored-by: thtri <[email protected]>
Co-authored-by: Thanh-Hai Trinh <[email protected]>
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.

3 participants