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(codeqlExecuteScan): added a feature to execute custom command #4912

Merged
merged 8 commits into from
May 27, 2024

Conversation

daskuznetsova
Copy link
Contributor

Changes

Added a feature to execute arbitrary commands between codeql analysis and results upload.

  • Tests
  • Documentation

@daskuznetsova daskuznetsova requested a review from vlkl-sap April 26, 2024 10:49
@daskuznetsova daskuznetsova requested a review from a team as a code owner April 26, 2024 10:49
Copy link

@vlkl-sap vlkl-sap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i made one minor suggestion - otherwise LGTM. thanks!

if err != nil {
log.Entry().WithError(err).Errorf("failed to parse custom command %s", command)
}
err = utils.RunExecutable(cmd[0], cmd[1:]...)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we log the output of Split() here? that could help diagnose parsing/quoting issues later.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@sumeetpatil
Copy link
Contributor

/it-go

@sumeetpatil sumeetpatil merged commit 8924b97 into SAP:master May 27, 2024
12 checks passed
maxatsap pushed a commit to maxatsap/jenkins-library that referenced this pull request Jul 23, 2024
…AP#4912)

* added running custom command

* go mod tidy

* added log with parsed command info

* fixed log format

---------

Co-authored-by: sumeet patil <[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