Christopher Fenner and Linda Siebert
ca50cc895e
chore: add note about DCO ( #2985 )
...
* Update CONTRIBUTING.md
* Apply suggestions from code review
Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com >
Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com >
2021-10-11 13:54:43 +02:00
Christopher Fenner
f585e932ef
docs: remove hadolint docs in Groovy ( #3164 )
...
* allow buildTool yarn
* remove groovy docs for hadolint
* remove unused import
2021-10-11 10:08:20 +02:00
Christopher Fenner and Oliver Nocon
59cf4d1096
fix: allow buildTool yarn for versioning ( #3160 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2021-10-11 08:51:17 +02:00
Christopher Fenner and Oliver Nocon
4525c1daa4
fix: use orchestrator specific stage name ( #3127 )
...
* extend orchestator to provide stage name
* use orchestrator specific stage name
* fix test case
* remove comment
* fix test case
* prettify
* change something..
* do not exit
* Update pkg/orchestrator/azureDevOps.go
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2021-09-29 08:31:45 +02:00
Christopher Fenner
f78777f784
feat(npm): allow to publish artifact to registry ( #2871 )
...
* add new paraeters
* update generated sources
* run npm publish
* add repositoryUrl parameter
* handle registry credentials
* rename parameter
* handle base64encoding
* remove vault reference
* make username secret
* add publish method
* use publish method
* use dedicated registry
* use dry run
* fix
* prepend path
* fix workdir
* move code to npm package
* do changes
* update dependencies
* correct property init
* remomve dry-run
* regenerate
* add mock
* add logging
* add debug log
* dry-run
* remove try run
* remove append
* add debug outut
* change
* add debug output
* changes
* cleanup
* use different auth property
* add credential utils
* add debug log outputs
* remove auth handling & reuse writeFile
* rename
* fix debug output
* remove comments
* update comment
* rename function
* update docs
* update generated files
* handle npm ignore
* remove commented code
* add debug output
2021-07-15 14:46:04 +02:00
367ca6211a
refactor(protecode): simplify protecode calls ( #2838 )
...
* simplify protecode calls
* add todos
* reomve todo
* restore go.sum
* Update cmd/protecodeExecuteScan.go
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com >
* Apply suggestions from code review
* remove productID
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com >
Co-authored-by: Sven Merk <33895725+nevskrem@users.noreply.github.com >
2021-06-15 22:29:24 +02:00
Christopher Fenner
8c5a7f5db5
feat(docs): add possibleValues for artifactPrepareVersion ( #2865 )
...
* correct docs
* update generated sources
2021-06-04 12:20:24 +02:00
Christopher Fenner
824cd7d768
fix(jenkins): fix job invocation ( #2868 )
...
* update mock
* update signarture
* add test case
* use latest gojenkins
* add integration test
* update mock
* add todo
* add job wrapper
* add job mock
* add test cases
* refactor
* cleanup
* update integration test case
2021-06-02 16:45:22 +02:00
Christopher Fenner
e24b38da24
fix(jenkins): correct interface ( #2862 )
...
* update mock
* update signarture
* add test case
2021-05-31 08:54:04 +02:00
Christopher Fenner
62836a64e7
feat(http): expose standard client ( #2860 )
...
* expose standard client
* reset go.summ
2021-05-28 12:13:19 +02:00
Christopher Fenner
40c32598a4
feat(jenkins): update jenkins go dependency ( #2848 )
...
* update dependency
* use context
* regenerate mock
* decapitalize error messages
* use getBuildFromQueueID
* add comments about mockery
* update mocks
* update tests
* add context parameter
* pull up context
* update mocks
* update tests
2021-05-28 11:12:42 +02:00
Christopher Fenner
19b9efc4ee
chore(license): update LICENSE text ( #2855 )
2021-05-26 09:58:12 +02:00
Christopher Fenner
3a14a91ae5
refactor(versioning): simplify versioning model method ( #2825 )
...
* rename artifactVersion to version
* simplify versioningModel
2021-05-14 09:35:31 +02:00
Christopher Fenner and Oliver Nocon
98fac0a455
chore(deprecation): change format of deprecation notice from config command ( #2822 )
...
* Update config.go
* Update config.go
* add library name
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2021-05-10 19:18:16 +02:00
Christopher Fenner and Oliver Nocon
1cbc40f3d0
claim code ownership for Sonar ( #2812 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2021-05-06 11:39:07 +02:00
Christopher Fenner and Sven Merk
aaa1869ec0
feat(protecode): rename artifactVersion to version ( #2813 )
...
Co-authored-by: Sven Merk <33895725+nevskrem@users.noreply.github.com >
2021-05-05 19:52:13 +02:00
Christopher Fenner
804e66d4cd
feat(detect): add customScanVersion to detect scan ( #2790 )
...
* add versioningModel parameter
* extract versioning model to own package
* move log message
* use versioning method
* add customScanVersion parameter
* use customScanVersion
* adjust docs on other steps
* add customScanVersion parameter
* use customScanVersion
* adjust docs on other steps
* change log message
* update test case
* fix typo
* correct variable name
2021-05-05 10:24:05 +02:00
Christopher Fenner
2426486e7b
feat(sonar): add versioningModel and customScanVersion to sonar scan ( #2787 )
...
* add versioningModel parameter
* extract versioning model to own package
* move log message
* use versioning method
* add customScanVersion parameter
* use customScanVersion
* adjust docs on other steps
* update test case
2021-05-05 09:02:19 +02:00
Christopher Fenner
4603bf3c0e
refactor(protecode): rename parameter reuseExisting ( #2809 )
...
* rename parameter
* update code
* correct tests
2021-05-04 15:03:43 +02:00
Christopher Fenner
a91f1f7597
docs(vault): add note about vault auth env vars ( #2795 )
...
* Update vault.md
* fix code climate findings
2021-05-03 08:50:06 +02:00
Christopher Fenner
e11de9dbeb
chore(ci): add yamllint action ( #2774 )
...
* chore(ci): add yamllint action
* Create .yamllint.yml
* Update verify-yaml.yml
* Update verify-yaml.yml
* Update verify-yaml.yml
* Update verify-yaml.yml
* Update verify-yaml.yml
* correct yaml format
* correct yamllint findings
* disable truthy rule
* add pattern for workflows yamls
* fix c&p issue
2021-04-22 12:55:35 +02:00
Christopher Fenner
5b4b5518c8
fix(karma): provide env parameters for port and host name ( #2763 )
...
* add env vars for piper-karma-config
* update generated code
2021-04-16 15:18:34 +02:00
Christopher Fenner
b531c2a017
docs(whitesource): correct description ( #2762 )
...
* Correct description
* update generated code
2021-04-15 19:15:59 +02:00
Christopher Fenner
0fcbfa8da7
feat(sonar): create report for issue count ( #2691 )
...
* create json report
* archive report
* add test case
* generate report
* correct report name
2021-03-12 15:05:07 +01:00
Christopher Fenner
f9c0092f2e
chore(voter): show changes caused by git diff ( #2633 )
2021-03-12 10:12:40 +01:00
Christopher Fenner
4cabbca26e
docs(protecode): add description how to use fetch url for docker image ( #2665 )
...
* Update protecode.yaml
* update generated files
* update files
* fix typo
2021-03-12 09:58:21 +01:00
Christopher Fenner
be68270cb4
fix(piperExecuteBin): move CPE.readFromDisk to own finally block ( #1885 )
...
* Update piperExecuteBin.groovy
fixes #1881
* Update piperExecuteBin.groovy
2021-03-12 09:42:19 +01:00
Christopher Fenner and Oliver Nocon
f999925788
fix(influx): correct data type of influx measurements ( #2171 )
...
* update data type of influx measurements
* Update checkmarx.yaml
* pick changes from #1885 for testing
* update generated code
* update to new datatype
* adjust to type changes
* change back to string type
* Update fortifyExecuteScan.go
* add typo to be backward compatible
* change type to int for files_scanned and lines_of_code_scanned
* add typo
* add measurements to whitesource
* update generated sources
* adjust test cases
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2021-03-10 16:00:53 +01:00
Christopher Fenner
abc711299d
fix(sonar): disable measurements if no credentials are provided ( #2653 )
...
* disable if no credentials are provided
* exit early
2021-02-25 12:06:12 +01:00
Christopher Fenner
3875de8134
fix(sonar): use token provided by sonar-scanner-jenkins plugin ( #2649 )
2021-02-24 20:14:41 +01:00
Christopher Fenner
80515f3cfb
fix(sonar): remove warnings handling ( #2650 )
2021-02-24 19:21:40 +01:00
Christopher Fenner
30baa31b90
fix(sonar): prevents step from contacting sonar API for legacy systems ( #2648 )
2021-02-24 18:05:04 +01:00
Christopher Fenner
cb3fa7c293
feat(sonar): add output of measurements ( #2218 )
...
* add sonarqube measurements
* fetch measurements from API
* add api for fetching issue counts
* add debug outputs
* add further severities
* log number of issues
* report failure
* expose method to send request
* Fixed what was broken.
* add debug output
* wip
* correct opaque property
* push client handling to apiClient.go
* use correct API URL
* correct log outputs
* remove logging
* remove option validation
* extend search options
* restructure
* rename api client file
* simplify client usage
* simplify issue client
* write sonar values to influx
* extract issue service
* reorder imports
* add sonar integration test
* allow unknown fields
* add test case
* add test case
* remove
* fix
* Update http.go
* Apply suggestions from code review
* Update cmd/sonarExecuteScan.go
* rework test cases
* use explicit returns
* add task service
* add waitfortask
* fix typo
* remove fixme
* expose poll interval
* rename test cases
* add test cases
* use newAPIClient method
* use waitForTask
* rename services
* finalize code
* handle error
* move defer
* move types
* add test case
* use http.status...
* add test case
* expose api endpoint names
* extract api client
* adjust test cases
* Update integration-tests-pr.yaml
* Update integration-tests.yaml
* improve require message
* Update integration-tests-pr.yaml
* Update integration-tests-pr.yaml
2021-02-24 15:44:23 +01:00
Christopher Fenner
fbbb55471d
tests: expose sonar test secret to workflows ( #2646 )
...
* Update integration-tests-pr.yaml
* Update integration-tests.yaml
2021-02-24 12:58:48 +01:00
2d93e5d4df
fix(cpe) readToDisk failes with content from writeToDisk ( #2629 )
...
* branch for debugging
* Add json fix for booleans
* remove debug output
* handle boolean in cpe
* handle various types in json
* fix variable
Co-authored-by: OliverNocon <oliver.nocon@sap.com >
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2021-02-19 11:34:30 +01:00
Christopher Fenner
9508e35c42
fix(PR): avoid NPE in PR label handling ( #2612 )
...
* fix NPE for PR label handling
fixes #2607
* Update resources/default_pipeline_environment.yml
2021-02-16 10:10:15 +01:00
Christopher Fenner
5184a76453
chore(http): allow to send prepared requests ( #2580 )
...
* Update http.go
* fix c&p issue
* convert URL to string
* Apply suggestions from code review
fix code climate findings
* add test case
2021-02-08 14:26:15 +01:00
Christopher Fenner
9ec282fd0c
test: allow usage of httpmock in tests ( #2576 )
...
* add test case
* add flag for default transport
* Update go.mod
* Update go.sum
* fix spaces
* fix format
* Update http_test.go
* Update http_test.go
* Update http_test.go
* Update http_test.go
* Update http_test.go
2021-02-04 14:58:35 +01:00
Christopher Fenner
6dd006f0a0
fix(cpe): fix issue in custom type determination ( #2505 )
2021-01-12 11:36:25 +01:00
Christopher Fenner
834dd1a1de
fix(CPE): correct handling of complex (json) data in writeToDisk ( #2500 )
...
* correct handling of JSON data
* fix typo
* Update commonPipelineEnvironment.groovy
2021-01-11 12:58:12 +01:00
Christopher Fenner
9cd3ee5758
fix(checks+tests): fail pipeline if plugins fail the build ( #2463 )
...
* fix false negative
* add comment
* add default
2020-12-11 14:49:36 +01:00
Christopher Fenner
6970b57468
fix(cfDeploy): correct stash for go step ( #2456 )
2020-12-09 14:31:07 +01:00
Christopher Fenner
fac4af231f
fix(cfDeploy): correct stashing ( #2448 )
...
* remove stash from step yaml
* add stash to groovy code
2020-12-05 13:35:16 +01:00
Christopher Fenner
e1d140e513
fix(checksPublishResults): typo in tool it key ( #2443 )
2020-12-03 14:16:04 +01:00
Christopher Fenner
c9e2a09ca1
fix(docs): typo in sample parameter ( #2433 )
...
* fix typo
* add code blocks
2020-11-30 08:57:48 +01:00
Christopher Fenner
860b28884c
chore(jenkins): expose artifacts save method ( #2426 )
...
* fix code smell
* expose artifact.Save function
* regenerate mock file
2020-11-26 10:06:14 +01:00
Christopher Fenner and Stephan Aßmus
eff1933a61
refactor(checks): use warnings-ng plugin ( #2398 )
...
* use recordIssues
* fix c&p issue
* simplify code
* fix
* add quality gates
* change qgates to TOTAL_HIGH
* remove pattern for tasks
* use TOTAL_ERROR for checkstyle
* fix indent
* use deprecated threshold parameters
* debug messages
* transform legacy qgates
* fix
* adjust test cases
* correct qgates
* correct legacy thresholds
* fix typo
* remove deprecated defaults
* add test case
* log use tool
* add notification
* remove deprecated defaults
* remove deprecated parameter
* adjust legacy threshold message
* add q gates on error and high for all check tools
* Apply suggestions from code review
* adjust test cases
* remove duplicate assert
* Fail if aggregation is still defined
* update docs
* fix indent
* Update documentation/docs/steps/checksPublishResults.md
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
2020-11-25 15:39:33 +01:00
Christopher Fenner
1514be9857
chore: fix markdownlint findings ( #2385 )
...
* activate MD022
* fix MD022 findings
* activate MD030
* fix MD030 findings
* activate MD038
* fix MD038 findings
* activate MD031
* fix MD031 findings
* activate MD042
* fix MD042 findings
* activate MD032
* fix MD032 findings
* activate MD039
* activate MD007
* fix MD007 findings
* activate MD026
* fix MD026 findings
* activate MD001
* fix MD001 findings
* acknowledge disabled rules
* fix code climate MD032 finding
2020-11-17 09:20:47 +01:00
Christopher Fenner
052a65d495
chore(code climate): ignore generated mock files ( #2378 )
...
fixes #2377
2020-11-17 08:23:39 +01:00
Christopher Fenner
20fd6e82ff
fix: markdownlint findings for MD012 ( #2383 )
...
* activate MD012
* activate MD012
* fix MD012 findings
* fix MD012
2020-11-16 18:22:38 +01:00
Christopher Fenner
70eab49cb7
chore(code climate):sync config with local mdlint config ( #2381 )
2020-11-16 17:50:31 +01:00
Christopher Fenner and Stephan Aßmus
81c8553d6a
refactor(hadolint): implement step in GO ( #1169 )
...
* initial commit of yaml file
* initial commit for HaDoLint in GO
* add helper function to load file from url
* load config file
* write report information to disk
* comment the code
* refactor groovy code
* remove download function from FileUtils
* use http.Downloader
* rename step files
* update generated files
* update generated files
* remove duplicate commands
* add credentials for config url
* add generated test file
* reuse piperExecuteBin functions
* correct step name
* update go step
* deactivate test
* fix import
* use differing go step name
* rename step
* correct result publishing
* correct command name
* expose tls insecure flag
* hand through error
* disable tls verification
* fix tls disabling
* use credentials
* mow
* reformat
* add qgate only if set
* correct report name
* remove old defaults
* add qgate to defaults
* handle report name
* restore default
* remove unused step config
* use piperExecuteBin
* remove obsolete type
* add test cases
* remove groovy tests
* move client parameter handling to run function
* use custom interfaces and mockery
* remove commented code
* correct struct names
* rename parameter dockerfile
* add further asserts
* cleanup
* change file permission to read/write
* remove tokenize
* add further comments
* init http client only if necessary
* add todo
* Revert "rename parameter dockerfile"
This reverts commit 2a570685b8 .
* add alias for dockerfile parameter
* correct test case
* Apply suggestions from code review
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
* add comment about mock assertions
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
2020-11-16 15:14:54 +01:00
Christopher Fenner and Oliver Nocon
e8c74a4867
chore(sonar): set proper error categories ( #2358 )
...
* expose GetExitCode
* set error category for user issues
* fix typo
* Update command.go
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-11-16 14:54:22 +01:00
Christopher Fenner and Oliver Nocon
b6e4ae5094
Update config.yml ( #2371 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-11-13 16:51:25 +01:00
Christopher Fenner
fe58c3fed2
refactor: remove duplicate function from interface ( #2359 )
...
* remove duplicate function from interface
* remove import to net/http
2020-11-12 15:24:10 +01:00
Christopher Fenner and Oliver Nocon
b71825fac9
feat(pipeline): add sonar step to PR and Build stage ( #1651 )
...
* add sonar scan to build stage
* add sonar scan to PR stage
* add step activation condition
* adjust whitespaces
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-11-10 09:18:14 +01:00
Christopher Fenner
e859ed3375
feat(http): expose tls insecure flag ( #2324 )
...
* expose tls insecure flag
* fix tls disabling
* move debug message
* add test case
2020-11-09 11:47:03 +01:00
Christopher Fenner and Oliver Nocon
b7afe8bbf5
feat(http): support empty passwords ( #2206 )
...
* add test case
* allow zero-length passwords
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-11-03 19:36:52 +01:00
Christopher Fenner
8d682abc83
add package for Jenkins interactions ( #2296 )
2020-11-02 17:11:18 +01:00
Christopher Fenner
19e90f04f2
refactor: remove obsolete mandatory:false ( #2191 )
...
* refactor: remove obsolete mandatory:false
* refactor: remove obsolete mandatory:false
2020-11-02 16:42:17 +01:00
Christopher Fenner
bdfe90ed49
feat(hadolint): enable authentication when fetching config file ( #2225 )
...
* use httpRequest to fetch config file
* set default
* provide authentication for config url
* adjust test case
2020-10-23 13:57:22 +02:00
Christopher Fenner
86af3efcfe
fix(influx): adjust influx field types for fortify ( #2219 )
...
* adjust influx field types
* fix test case
* simplify type conversion
2020-10-22 11:40:42 +02:00
Christopher Fenner
b8d3a7d1a9
fix(influx): correct project_name field name ( #2195 )
...
* Update checkmarx.yaml
* regenerate
* adjust code
2020-10-19 13:09:17 +02:00
Christopher Fenner
0797f4049a
feat(docs): use custom defaults during docs generation ( #2022 )
...
* remove docs generator code from step-generator
* add docs generator to dedicated package
* add test cases
* add entry point for docs generation
* make output more readable
* read additional defaults
* add custo defaults parameters
* remove commented code
* adjust custom default parameter in workflow
* remove conflict leftovers
* handle custom default values
* remove comment
* extract code to function
* extract metadata reading to function
* do not print empty strings in favor of PIPER_* env vars
* extract new code to own metadata file
* only reset default on booleans
* remove obsolete test case
2020-10-16 12:50:39 +02:00
Christopher Fenner
595721db4c
fix(cfDeploy): correct type of default value ( #2192 )
2020-10-16 09:44:41 +02:00
Christopher Fenner
8eef130b22
fix(docs): flag mandatory parameters with default value as non-mandatory ( #2193 )
...
* fix(docs): flag mandatory parameters with default value as non-mandatory
* Update parameters.go
* add test cases
2020-10-16 09:06:39 +02:00
Christopher Fenner and Oliver Nocon
b859ab411c
fix(docs): correct md syntax for headlines ( #2177 )
...
* fix doc headlines
* correct headline level
* adjust test case
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-10-15 08:21:57 +02:00
Christopher Fenner
f3a4342261
feat(influx): handle data types of non-string fields ( #2132 )
...
* add type to sonar field
* respect type of influx fields
* update generated code
* switch type
* copy changes from #1885
* log JSON data
* read simple values from json
* Update InfluxData.groovy
* Revert "Update InfluxData.groovy"
This reverts commit c8cfdf381f .
* Revert "read simple values from json"
This reverts commit 94b69866d2 .
* Revert "copy changes from #1885 "
This reverts commit 2471b4475e .
* update TODO
2020-10-13 16:37:48 +02:00
Christopher Fenner
7a14331337
feat(sonar): use SonarSource sonar-scanner-cli Docker image ( #2166 )
...
* feat(sonar): update to sonar-scanner-cli v4.5
* regenerate files
2020-10-13 14:30:57 +02:00
Christopher Fenner
57d0bdda23
fix(influx): read simple values from json ( #2146 )
2020-10-12 11:14:18 +02:00
Christopher Fenner
f07f7a34b8
chore(detect): add error category for config issues ( #2130 )
2020-10-06 14:22:35 +02:00
Christopher Fenner and Oliver Nocon
5e2e303342
chore(sonar): add error category ( #2127 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-10-06 12:24:34 +02:00
Christopher Fenner and Oliver Nocon
6aa3e514e1
chore(detect): add error category for policy violations ( #2125 )
...
* chore(detect): add error category for policy violations
* Update detectExecuteScan.go
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-10-06 11:55:05 +02:00
17a5b477a0
fix(cfDeploy): mark dockerUsername as secret ( #2102 )
...
* make dockerUsername secret
* regenerate sources
Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com >
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-10-06 08:59:20 +02:00
Christopher Fenner and Stephan Aßmus
be90876b7c
feat(output): handle non-string output values ( #2113 )
...
* handle non-string values as JSON
* change value type to interface in resources
* regenerate code
* add test cases
* handle reading of json files
* write json data to json files
* fix assignment
* use GetResourceParameter
* add test case
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
2020-10-05 15:33:28 +02:00
Christopher Fenner and Oliver Nocon
9341ae4934
chore(sonar): assign error categories to know error cases ( #2111 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-10-02 15:08:08 +02:00
Christopher Fenner
9992881c37
chore(git): add binary file to ignore list ( #2110 )
2020-10-02 11:15:36 +02:00
Christopher Fenner and Daniel Kurzynski
5eb4c9de29
refactor(sonar): align serverUrl with other steps ( #2090 )
...
Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com >
2020-10-01 11:45:14 +02:00
Christopher Fenner
b16f0428e1
docs: make used library and binary name in samples exchangeable for custom steps ( #2092 )
...
* add code block type
* add parameters to hand in library and binary name
* use library and binary name parameters
* add test cases
* use yaml file to distintuish custom from regular steps
* add test case
2020-09-30 15:02:00 +02:00
Christopher Fenner
b2e345f4dc
docs: add note about Jenkins credentials ( #2078 )
...
* add note about Jenkins credentials
* remove copy&paste issue
* Update parameters.go
2020-09-28 11:45:21 +02:00
Christopher Fenner
cd819f205e
use correct template library ( #2077 )
...
fixes #2073
2020-09-28 09:10:52 +02:00
Christopher Fenner
6999380ee3
chore(go): simplify code using gofmt -s ( #2065 )
2020-09-24 08:58:53 +02:00
Christopher Fenner
b219fb6514
fix(typo): found by misspell ( #2064 )
...
* fix typos in step yamls
* fix typos in go files
* regenerate step code
* fix typos in md files
* fix typos in groovy files
* fix further typos
2020-09-24 07:41:06 +02:00
Christopher Fenner
54ff93233e
refactor(docs): separate step and docs generator ( #2033 )
...
* remove docs generator code from step-generator
* add docs generator to dedicated package
* add test cases
* add entry point for docs generation
* make output more readable
* remove dead code
2020-09-23 13:55:17 +02:00
Christopher Fenner and Oliver Nocon
a47d0443f2
fix(protecode): correct default value for excludeCVEs ( #2025 )
...
* correct default value
* regenerate
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-09-17 21:05:03 +02:00
Christopher Fenner and Stephan Aßmus
df9f75b04d
refactor: align parameter name for username ( #1960 )
...
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
2020-09-16 11:33:03 +02:00
Christopher Fenner
666923e651
docs: change secret docs ( #1984 )
...
* change secret docs
* link to credentials in resource reference
* cleanup
* correct type
* add configuration scope
* correct test case
2020-09-10 10:33:59 +02:00
Christopher Fenner
f7d881d602
fix(protecode): correct project naming ( #1975 )
...
* fix project naming
* add test case for getTarName
* correct tar filename generation
* handle empty version
2020-09-02 15:00:55 +02:00
Christopher Fenner and Stephan Aßmus
b59bac7892
fix(protecode): respect failOnSevereVulnerabilities parameter ( #1969 )
...
* fix redundant type issues
* cleanup
* extract report function for protecode package
* use speaking status constant for API results
* remove unconsidered return value
* correct switch statement
* handle severe vulnerabilities
* Apply suggestions from code review
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
* correct test name
* return errors from WriteReport function
* expose ReportData struct
* set Error Category
* refactor constant visibility
* change type name
* describe type
* change type name
* fail after report generation
* do not fail on report write errors
* add error as return value
* fix typo
* use require statements
* assert major vulnerabilities
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
2020-09-02 10:41:12 +02:00
Christopher Fenner
36b7eaf197
refactor: correct yaml format ( #1965 )
2020-08-31 16:10:28 +02:00
Christopher Fenner
8007e4af51
docs: link credentialIDs to parameter ( #1961 )
2020-08-28 15:38:15 +02:00
Christopher Fenner
173b453d84
refactor(protecode): add explicit parameter for Docker config.json file ( #1914 )
...
* add dedicated property to handle docker config file
* switch to dockerConfigJSON in groovy
* use DockerConfigJSON
* add secret reference
* Update protecode.yaml
* Update protecode.yaml
* improve docs
* update generated sources
2020-08-12 14:57:11 +02:00
Christopher Fenner
6a76adf5ff
refactor(protecode): align Docker config.json parameter name ( #1915 )
2020-08-12 11:31:09 +02:00
Christopher Fenner
9340729646
chore(protecode): be more verbose about docker credentials ( #1911 )
...
* log more information about docker credentials
* remove println
* fix format issues
* Update protecodeExecuteScan.go
* correct weird space characters
* add test case for correctDockerConfigEnvVar
2020-08-11 14:42:08 +02:00
Christopher Fenner
a5b59d612d
docs: remove outdates prerequisites from Protecode step ( #1905 )
...
* remove outdates prerequisites
* fix code climate issue
2020-08-11 11:31:40 +02:00
Christopher Fenner
8aa93a3177
docs: remove colon from headlines ( #1896 )
2020-08-07 22:10:43 +02:00
Christopher Fenner and Oliver Nocon
a7213587cb
refactor(protecode): remove unused parameter ( #1899 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com >
2020-08-07 18:59:50 +02:00
Christopher Fenner
95575cdd55
refactor(protecode): reuse piperExecuteBin code ( #1886 )
...
* add correlationID
* reuse credentialWrapper
* reuse getStepContextConfig
* reuse prepareStepParameters
* reuse prepareExecution
* reuse prepareMetadataResource
* respect custom defaults and custom args
* add todo
* respect pipeline environment values
* use piperExecuteBin
2020-08-07 15:24:54 +02:00
Christopher Fenner and Stephan Aßmus
0a02fe1fb8
refactor(protecode): handle reports inside go ( #1891 )
...
* publish artifacts
* publish project report link
* archive scan report
* fix typo
* remove obsolete reading iof result file
* publish sidebar link
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com >
2020-08-07 13:03:38 +02:00
Christopher Fenner
896519a77f
refactor(sonar): reuse piperExecuteBin code ( #1880 )
...
* reuse piperExecuteBin code
* add correlation id
* reuse credential loading
* reuse dockerWrapper
* rearrange code
* add influx wrapper
* correct writeToDisk position
2020-08-06 14:22:40 +02:00