1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/cmd
Jordan Levin 34967c502c
Whitesource scan (MVP) (#1658)
* Whitesource MVP for Gradle, Golang, and NPM/Yarn

* Refactoring

* Refactor and cleanup, better error checking

* publish stepResults, use pkg/versioning, bubble up errors, add gomod versioning support

* Run gofmt and cleanup comments

* Resolve PR comments

* Update resources/metadata/whitesource.yaml

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* Only determine project coordinates if they are missing

Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>

* Gradle versioning artifact

* fix gradle artifact version regexp and refactor

* Fix token extraction from output buffer

* Fix some issues with pip and jsonfile versioning logic

* Remove useless spacing

* Remove unnecessary test file and fix naming style for JSONDescriptor

* Automatically download wss-unified-agent if file does not exist

* adds downloadVulnerabilityReport, checkSecurityViolations, minor refactoring

* adds config.ReportDirectoryName, improves readability

* Version-wide reporting for vulnerabilities and list of libraries.

* Refactor and improve build accuracy

* fix sed command

* Add includes file pattern config option

* Adds --exclude command line flag

* run go mod tidy and regenerate step framework

* Fix unit tests

* revert changes

* poll project status before downloading reports

* merge with master

* go mod tidy, go fmt, and fix whitesource unit test

* sync go.mod

* sync go.mod again

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-07-01 07:54:13 +02:00
..
testdata Protecode as GoLang (#1119) 2020-02-06 16:16:34 +01:00
abapEnvironmentPullGitRepo_generated_test.go Go implementation for abapEnvironmentPullGitRepo() (#1107) 2020-02-04 11:43:27 +01:00
abapEnvironmentPullGitRepo_generated.go Change parameters/alias for CfServiceKeyName (#1726) 2020-06-30 15:46:07 +02:00
abapEnvironmentPullGitRepo_test.go Change parameters/alias for CfServiceKeyName (#1726) 2020-06-30 15:46:07 +02:00
abapEnvironmentPullGitRepo.go Change parameters/alias for CfServiceKeyName (#1726) 2020-06-30 15:46:07 +02:00
abapEnvironmentRunATCCheck_generated_test.go Add abapEnvironmentRunATCCheck step (#1454) 2020-05-13 14:51:48 +02:00
abapEnvironmentRunATCCheck_generated.go Change parameters/alias for CfServiceKeyName (#1726) 2020-06-30 15:46:07 +02:00
abapEnvironmentRunATCCheck_test.go Execute test in temp folder (#1561) 2020-05-18 10:31:38 +02:00
abapEnvironmentRunATCCheck.go cf create/delete service: Changing to workingDir (#1560) 2020-06-15 21:31:50 +02:00
artifactPrepareVersion_generated_test.go Add step to prepare the version for an artifact (#1343) 2020-04-03 16:34:40 +02:00
artifactPrepareVersion_generated.go Extend resource references to cater for secrets (#1718) 2020-06-25 16:33:38 +02:00
artifactPrepareVersion_test.go artifactPrepareVersion: remember original artifact version (#1600) 2020-05-28 10:05:22 +02:00
artifactPrepareVersion.go artifactPrepareVersion: remember original artifact version (#1600) 2020-05-28 10:05:22 +02:00
checkmarxExecuteScan_generated_test.go Checkmarx as golang (#1075) 2020-01-27 23:40:53 +01:00
checkmarxExecuteScan_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
checkmarxExecuteScan_test.go Fix chars in checkmarx test, improve development.md (#1154) 2020-02-06 09:43:19 +01:00
checkmarxExecuteScan.go Fix checkmarx (#1655) 2020-06-12 09:22:22 +02:00
cloudFoundryCreateServiceKey_generated_test.go Transformation of cfCreateServiceKey to Golang (#1253) 2020-04-01 11:45:31 +02:00
cloudFoundryCreateServiceKey_generated.go Change parameters/alias for CfServiceKeyName (#1726) 2020-06-30 15:46:07 +02:00
cloudFoundryCreateServiceKey_test.go Removing JSON config for Service Key Creation as in-line parameter (#1434) 2020-04-29 13:11:06 +02:00
cloudFoundryCreateServiceKey.go Add abapEnvironmentRunATCCheck step (#1454) 2020-05-13 14:51:48 +02:00
cloudFoundryDeleteService_generated_test.go Add step cloudFoundryDeleteService (#1097) 2020-02-10 14:53:12 +01:00
cloudFoundryDeleteService_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
cloudFoundryDeleteService_test.go Add ServiceKey deletion to cloudFoundryDeleteService step (#1177) 2020-03-05 15:35:43 +01:00
cloudFoundryDeleteService.go Fix logrus buffer issue (#1511) 2020-05-06 13:35:40 +02:00
containerSaveImage_generated_test.go Create step to save container image (#1554) 2020-05-18 08:55:25 +02:00
containerSaveImage_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
containerSaveImage_test.go Create step to save container image (#1554) 2020-05-18 08:55:25 +02:00
containerSaveImage.go Create step to save container image (#1554) 2020-05-18 08:55:25 +02:00
detectExecuteScan_generated_test.go Detect: Add golang implementation (#1049) 2019-12-13 09:55:45 +00:00
detectExecuteScan_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
detectExecuteScan_test.go Move mock capabilities to pkg/mock/runner and adapt all tests 2020-02-27 12:11:22 +01:00
detectExecuteScan.go detectExecuteScan - switch off phone home (#1582) 2020-05-25 09:44:42 +02:00
fortifyExecuteScan_generated_test.go Fortify implementation in golang (#1428) 2020-05-25 19:48:59 +02:00
fortifyExecuteScan_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
fortifyExecuteScan_test.go Refactor pkg/npm and npmExecuteScripts (#1684) 2020-06-18 17:30:17 +02:00
fortifyExecuteScan.go Run npm scripts in virtual frame buffer and extend command.go to run executable asynchronously (#1669) 2020-06-16 11:42:51 +02:00
gctsCloneRepository_generated_test.go Introducing new step 'gctsCloneRepository' (#1468) 2020-06-18 07:45:22 +02:00
gctsCloneRepository_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
gctsCloneRepository_test.go Introducing new step 'gctsCloneRepository' (#1468) 2020-06-18 07:45:22 +02:00
gctsCloneRepository.go Introducing new step 'gctsCloneRepository' (#1468) 2020-06-18 07:45:22 +02:00
gctsCreateRepository_generated_test.go Introducing new step: "gctsCreateRepository" (#1424) 2020-04-24 15:31:41 +02:00
gctsCreateRepository_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
gctsCreateRepository_test.go Introducing new step: "gctsCreateRepository" (#1424) 2020-04-24 15:31:41 +02:00
gctsCreateRepository.go Fix logrus buffer issue (#1511) 2020-05-06 13:35:40 +02:00
gctsDeploy_generated_test.go Introducing new step 'gctsDeployCommit' (#1476) 2020-05-18 21:39:35 +02:00
gctsDeploy_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
gctsDeploy_test.go Introducing new step 'gctsDeployCommit' (#1476) 2020-05-18 21:39:35 +02:00
gctsDeploy.go Introducing new step 'gctsDeployCommit' (#1476) 2020-05-18 21:39:35 +02:00
getConfig_test.go piperExecuteBin - prevent non-speaking exit code 1 error (#1584) 2020-05-26 07:58:03 +02:00
getConfig.go piperExecuteBin - prevent non-speaking exit code 1 error (#1584) 2020-05-26 07:58:03 +02:00
githubCreatePullRequest_generated_test.go Add step githubCreatePullRequest (#1068) 2019-12-16 16:34:12 +00:00
githubCreatePullRequest_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
githubCreatePullRequest_test.go Add step githubCreatePullRequest (#1068) 2019-12-16 16:34:12 +00:00
githubCreatePullRequest.go Streamline step generation (#1142) 2020-02-04 10:46:43 +01:00
githubPublishRelease_generated_test.go Update githubPublishRelease 2019-11-04 16:07:30 +01:00
githubPublishRelease_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
githubPublishRelease_test.go GithubPublishRelease: Add "pre-release" flag (#1654) 2020-06-15 21:05:08 +02:00
githubPublishRelease.go GithubPublishRelease: Add "pre-release" flag (#1654) 2020-06-15 21:05:08 +02:00
interfaces.go Run npm scripts in virtual frame buffer and extend command.go to run executable asynchronously (#1669) 2020-06-16 11:42:51 +02:00
jsonApplyPatch_generated_test.go Add schema patch step in go (#1683) 2020-06-18 14:50:46 +02:00
jsonApplyPatch_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
jsonApplyPatch_test.go Let json patcher fail if file not found (#1694) 2020-06-19 20:13:20 +02:00
jsonApplyPatch.go Let json patcher fail if file not found (#1694) 2020-06-19 20:13:20 +02:00
karmaExecuteTests_generated_test.go Add golang implementation for karma tests (#919) 2019-10-25 14:58:59 +02:00
karmaExecuteTests_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
karmaExecuteTests_test.go Move mock capabilities to pkg/mock/runner and adapt all tests 2020-02-27 12:11:22 +01:00
karmaExecuteTests.go Fix logrus buffer issue (#1511) 2020-05-06 13:35:40 +02:00
kubernetesDeploy_generated_test.go Add kubernetesDeploy step (#1073) 2020-01-24 14:30:27 +01:00
kubernetesDeploy_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
kubernetesDeploy_test.go feat(k8s): Add basic support for Helm 3 in kubernetesDeploy step (#1438) 2020-04-24 09:37:11 +02:00
kubernetesDeploy.go kubernetesDeploy: categorize known errors & fix #1732 (#1727) 2020-06-30 10:48:30 +02:00
malwareExecuteScan_generated_test.go Provide tooling for malware scanning (#1329) 2020-04-23 09:12:10 +02:00
malwareExecuteScan_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
malwareExecuteScan_test.go Timeout for malwarescan (#1623) 2020-06-03 11:08:34 +02:00
malwareExecuteScan.go Timeout for malwarescan (#1623) 2020-06-03 11:08:34 +02:00
mavenBuild_generated_test.go Add maven build/install step (#1245) 2020-03-13 13:32:37 +01:00
mavenBuild_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
mavenBuild_test.go Enhance piperutils.Files and mock.FilesMock (#1664) 2020-06-15 09:47:33 +02:00
mavenBuild.go Fix logrus buffer issue (#1511) 2020-05-06 13:35:40 +02:00
mavenExecute_generated_test.go Add mavenExecute to go lib 2020-02-28 13:09:46 +01:00
mavenExecute_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
mavenExecute_test.go Fix maven parameter handling (#1493) 2020-05-06 17:43:32 +02:00
mavenExecute.go Fix maven parameter handling (#1493) 2020-05-06 17:43:32 +02:00
mavenExecuteStaticCodeChecks_generated_test.go Add groovy wrapper for mavenExecuteStaticCodeChecks and rename go step 2020-03-12 15:45:57 +01:00
mavenExecuteStaticCodeChecks_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
mavenExecuteStaticCodeChecks_test.go Use mavenExecute from go (#1388) 2020-04-24 10:41:49 +02:00
mavenExecuteStaticCodeChecks.go Fix logrus buffer issue (#1511) 2020-05-06 13:35:40 +02:00
mtaBuild_generated_test.go go: mta build (#1128) 2020-02-25 14:33:34 +01:00
mtaBuild_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
mtaBuild_test.go Refactor pkg/npm and npmExecuteScripts (#1684) 2020-06-18 17:30:17 +02:00
mtaBuild.go Install dev deps in mta build (#1685) 2020-06-22 10:39:52 +02:00
nexusUpload_generated_test.go Implement nexusUpload command and tests (#1255) 2020-03-20 18:20:52 +01:00
nexusUpload_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
nexusUpload_test.go Refactor pkg/npm and npmExecuteScripts (#1684) 2020-06-18 17:30:17 +02:00
nexusUpload.go Enhance piperutils.Files and mock.FilesMock (#1664) 2020-06-15 09:47:33 +02:00
npmExecuteLint_generated_test.go Add Java-/Typescript linting capabilities (#1636) 2020-06-22 10:12:28 +02:00
npmExecuteLint_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
npmExecuteLint_test.go Add Java-/Typescript linting capabilities (#1636) 2020-06-22 10:12:28 +02:00
npmExecuteLint.go Add Java-/Typescript linting capabilities (#1636) 2020-06-22 10:12:28 +02:00
npmExecuteScripts_generated_test.go Implement npmExecuteScripts step (#1422) 2020-04-24 18:29:30 +02:00
npmExecuteScripts_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
npmExecuteScripts_test.go Add Java-/Typescript linting capabilities (#1636) 2020-06-22 10:12:28 +02:00
npmExecuteScripts.go Refactor pkg/npm and npmExecuteScripts (#1684) 2020-06-18 17:30:17 +02:00
piper_test.go Fix maven parameter handling (#1493) 2020-05-06 17:43:32 +02:00
piper.go Whitesource scan (MVP) (#1658) 2020-07-01 07:54:13 +02:00
protecodeExecuteScan_generated_test.go Protecode as GoLang (#1119) 2020-02-06 16:16:34 +01:00
protecodeExecuteScan_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
protecodeExecuteScan_test.go Protecode as GoLang (#1119) 2020-02-06 16:16:34 +01:00
protecodeExecuteScan.go refactor(protecode): handle DOCKER_CONFIG in go (#1502) 2020-05-06 16:07:10 +02:00
sonarExecuteScan_generated_test.go refactor(sonar): implement Sonar step in GO (#1042) 2020-03-23 10:38:31 +01:00
sonarExecuteScan_generated.go Extend resource references to cater for secrets (#1718) 2020-06-25 16:33:38 +02:00
sonarExecuteScan_test.go feat(sonar): upgrade sonar-scanner-cli to 4.4.0.2170 (#1710) 2020-06-25 13:53:22 +02:00
sonarExecuteScan.go sonarExecuteScan: add error categorization (#1715) 2020-06-26 07:38:27 +02:00
version_test.go Make version command a high level command like get-config without resolving the configuration (#1689) 2020-06-19 14:39:19 +02:00
version.go Make version command a high level command like get-config without resolving the configuration (#1689) 2020-06-19 14:39:19 +02:00
whitesourceExecuteScan_generated_test.go Whitesource scan (MVP) (#1658) 2020-07-01 07:54:13 +02:00
whitesourceExecuteScan_generated.go Whitesource scan (MVP) (#1658) 2020-07-01 07:54:13 +02:00
whitesourceExecuteScan.go Whitesource scan (MVP) (#1658) 2020-07-01 07:54:13 +02:00
xsDeploy_generated_test.go xs deploy go (#931) 2019-12-05 14:22:38 +01:00
xsDeploy_generated.go Add error category parsing to cmd execution (#1703) 2020-06-24 10:04:05 +02:00
xsDeploy_test.go xsDeploy: simplifiy assertions in tests (#1211) 2020-02-28 11:20:17 +01:00
xsDeploy.go xs deploy cpe inputs and outputs (#1111) 2020-02-28 11:01:09 +01:00