1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-04-27 12:32:19 +02:00

40 Commits

Author SHA1 Message Date
Daria Kuznetsova
085a8c003b
fix(codeqlExecuteScan): handle spaces in path to maven settings file ()
* added quotes for mvn settings path

* added logs

* removed logs, added excape symbol for spaces

* set quotes

* removed replacing

* changed quotes

* fixed tests

* removed extra log

---------

Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2024-09-12 10:15:11 +03:00
Daria Kuznetsova
92a6705c2e
fix(codeqlExecuteScan): transforming querySuite to empty string ()
* fixed transforming querySuite to empty string

* fixed error handling

---------

Co-authored-by: Vyacheslav Starostin <32613074+vstarostin@users.noreply.github.com>
Co-authored-by: Mihai Herda <77497647+mihai-herda-SAP@users.noreply.github.com>
2024-06-19 10:15:44 +02:00
Daria Kuznetsova
67ed27f07d
added sed cmd to transform querySuite ()
* added sed cmd to transform querySuite

* changed sh to bash

* added checking os

* fixed tests by mocking utils

* fixed tests

* renamed param

---------

Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2024-06-06 15:14:03 +03:00
Daria Kuznetsova
8924b9786e
feat(codeqlExecuteScan): added a feature to execute custom command ()
* added running custom command

* go mod tidy

* added log with parsed command info

* fixed log format

---------

Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2024-05-27 16:39:05 +05:30
Daria Kuznetsova
df0b288ecb
refactor codeqlExecuteScan ()
* refactored codeql step

* fixed tests

* fixed reports output dir

* refactored

* fixed returning error

* fixed tests

---------

Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2024-04-16 11:35:56 +03:00
Daria Kuznetsova
bf59a28aba
feat(codeqlExecuteScan): added open configs for codeql database creation and analysis ()
Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2024-04-02 10:18:17 +05:30
Daria Kuznetsova
668b3711a3
fix(codeqlExecuteScan): improved logging () 2024-02-05 15:54:49 +05:30
Daria Kuznetsova
4be7b99f95
fix(codeqlExecuteScan): check for compliance for Audit All ()
Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2024-01-25 11:05:29 +05:30
Daria Kuznetsova
6920cad511
feat(codeqlExecuteScan): adding data to InfluxDB ()
* added influxdb to params, added log for testing

* changed fields for codeql influx db

* added setting codeql findings to influx

* refactored

* fixed typo

* added tests
2024-01-17 11:38:16 +03:00
Googlom
ac5cf17317
refactor(orchestrator): Use singleton in orchestrator package and rename methods ()
* rename interface, types and methods.
some type changes and refactor

* update dependent methods and variables

* fix unit tests

* a bit more refactor and fix

* concurrent safe singleton

* return old Options struct

* refactor creating config provider and fix nil pointer derefernce

* fix unit test and linter errors

* introduce resetting config provider (for unit tests)

* fix annoying error message when config provider is not configured

---------

Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
Co-authored-by: Muhammadali Nazarov <muhammadalinazarov@gmail.com>
2024-01-09 16:01:15 +05:00
Daria Kuznetsova
4f5ed26031
fix(codeqlExecuteScan): support http(s) urls for maven settings files () 2023-12-13 11:55:07 +03:00
sumeet patil
a6dccf995d
fix(codeqlExecuteScan): Fix for GlobalSettingsFile url checks () 2023-12-05 13:43:29 +05:30
sumeet patil
e6a7432025
fix(codeqlExecuteScan): url checks for settings file () 2023-12-04 15:32:12 +05:30
Daria Kuznetsova
aab4de4597
feat(codeqlExecuteScan): added params projectSettingsFile and globalSettingsFile ()
* added settings file params

* added checking build tool
2023-12-01 12:45:31 +03:00
Daria Kuznetsova
ca633186f9
refactor(codeqlExecuteScan): refactor codeql reporting ()
Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2023-11-20 18:51:04 +05:30
Daria Kuznetsova
6331d1b839
feat(codeqlExecuteScan): cloning project from non-github scm to github
Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2023-10-18 16:50:15 +05:30
Daria Kuznetsova
ccd2acfbb2
fix(codeqlExecuteScan): logging when use both Vault and Jenkins Credentials config ()
* added logging if unauthorized for github

* refactored

* fixed log message & added logging github response

* deleted extra log

* refactored log message
2023-09-27 14:59:35 +03:00
sumeet patil
33067a5cb4
fix(codeqlExecuteScan): Fix working directory () 2023-09-25 16:52:54 +05:30
Daria Kuznetsova
84dead704b
added querySuite to codeql audit report () 2023-07-25 15:50:26 +03:00
Daria Kuznetsova
e117067a66
fix(codeqlExecuteScan): changed audit report format ()
Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2023-07-19 19:16:05 +05:30
Daria Kuznetsova
96f5508c8a
fix(codeqlExecuteScan): moved flag checkIfCompliance ()
* moved checkForCompliance flag, updated description of sarif check params

* added generated codeqlExecuteScan

* moved appending reports before checking for compliance

---------

Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2023-07-11 22:02:54 +05:30
Daria Kuznetsova
6eb4c2e72d
fix(codeqlExecuteScan): added waiting for the SARIF file upload ()
* added waiting for the sarif file uploaded & tests

* increased polling time, added timeout for waiting response from server & tests

* fixed handling error while waiting sarif uploaded

* added params for checking sarif uploaded & refactor

* added test logs

* fixed logs and test

* added returning missed error

* changed params descriptions and server response error processing processing

* fixed retrying logic

* increased polling timeout params & refactored
2023-06-20 15:50:28 +03:00
sumeet patil
9b60fcf506
fix(codeqlExecuteScan): fixed logic for getting code-scanning alerts () 2023-06-14 16:59:01 +05:30
sumeet patil
416cb1d327
fix(codeqlExecuteScan): added report file to output resources () 2023-06-02 18:31:52 +05:30
Daria Kuznetsova
cd71282f00
fix(codeqlExecuteScan): pagination call for getting codescanning results ()
pagination call for getting code scanning results

---------

Co-authored-by: sumeet patil <sumeet.patil@sap.com>
2023-05-31 14:07:09 +05:30
sumeet patil
1c018dbff7
feat(codeqlExecuteScan) : auto fill api url () 2023-05-22 19:59:43 +05:30
Daria Kuznetsova
7de6f38d98
fix(codeqlExecuteScan): fixed regexp pattern to correctly parse ssh url () 2023-05-05 18:57:47 +02:00
sumeet patil
70ed56b22d
fix(codeqlExecuteScan): checkForComplaince flag refactoring () 2023-05-03 12:29:04 +02:00
sumeet patil
6dad124367
feat(codeqlExecuteScan): CodeQL compliance report and check ()
* CodeQL compliance report and check

* fix test cases

---------

Co-authored-by: Daria Kuznetsova <d.kuznetsova@sap.com>
2023-04-28 15:47:05 +02:00
Daria Kuznetsova
47c5a16cc0
fix(codeqlExecuteStep): parsing git url with dots in repo name ()
* change regexp to parse repo URL with dots in repo name
* added regex to cut off username and token from URL & added test cases
2023-04-04 21:16:15 +02:00
Daria Kuznetsova
d6d1265eb9
feat(codeqlExecuteScan): added logging codeql version ()
* added printing codeql version

* refactored duplicated code

* added else for logging codeql version
2023-03-14 13:48:42 +01:00
Daria Kuznetsova
9774eaab86
fix(codeqlExecuteScan): added parameters threads and ram () 2023-03-13 19:17:16 +05:30
sumeet patil
b171b82640
fix(codeql): fix toolrecord report link () 2023-02-24 18:12:26 +05:30
Daria Kuznetsova
cea2a6e290
feat(codeql): added generating file toolrun_codeql.json ()
* added generating toolrun file for codeql
2023-02-22 22:30:53 +05:30
Daria Kuznetsova
2191e2d458
fix(codeqlExecuteScan): fixed duplication of language flag in codeql () 2023-02-13 21:14:25 +05:30
Oliver Nocon
a46f796bcd
chore: cleanup reporting & some incorrect file usage in tests ()
* chore: cleanup reporting & some incorrect file usage in tests

* cleanup interface

* chore: remove comment

* preserve error handling

* Rename FileUtils.go to fileUtils.go

* clean up formatting

* chore: address static check findings

* fix brittle test

* chore: cleanup formatting
2022-08-09 10:57:02 +02:00
Oliver Nocon
f6a6448631
chore: fix linting issues ()
* chore: fix linting issues

* add more fixes

* correct formatting

* Delete depl.yaml
2022-07-21 09:04:21 +02:00
sumeet patil
818be9d428
feat(codeql): new codeql db parameter () 2022-07-20 10:07:57 +02:00
sumeet patil
9c4446ae0a
feat(codeql) merge commit git reference ()
Sets git reference and gitRemoteCommitId.
Jenkins has 2 strategies - 'Merging the pull request with the current target branch revision' and 'The current pull request revision'. When 'Merging the pull request with the current target branch revision' is run, Jenkins creates a local merge commit and runs a job for that particular merge commitId. This commitId is then used for codeql to upload sarif, on upload it throws an error as the merge commit does not exist in github. To resolve this we have introduces a new variable 'gitRemoteCommitId' in commonPipelineEnvironment which gives the remote merge commit id.
2022-07-12 10:25:17 +02:00
sumeet patil
78cf40799e
feat(codeql): new codeql piper step ()
* codeql piper step
2022-06-24 09:04:24 +02:00