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

add debug print of full HttpPost and logs #153

Merged
merged 1 commit into from
Sep 28, 2023
Merged

add debug print of full HttpPost and logs #153

merged 1 commit into from
Sep 28, 2023

Conversation

matthyx
Copy link
Contributor

@matthyx matthyx commented Sep 25, 2023

PR Type:

Enhancement


PR Description:

This PR enhances the debugging capabilities by adding debug logs to various functions. It also adds mock vulnerability data to the MockCVEAdapter for testing purposes.


PR Main Files Walkthrough:

files:

adapters/mockcve.go: Added mock vulnerability data to the ScanSBOM function of the MockCVEAdapter.
adapters/v1/backend.go: Added a new function httpPostDebug that logs the full URL, headers, and body of an HTTP post request.
adapters/v1/grype.go: Enhanced the debug log in the ScanSBOM function to include the number of vulnerabilities.
adapters/v1/syft.go: Enhanced the debug log in the CreateSBOM function to include the number of packages.

@codiumai-pr-agent codiumai-pr-agent bot added the enhancement New feature or request label Sep 25, 2023
@codiumai-pr-agent
Copy link

PR Analysis

  • 🎯 Main theme: Enhancement of debugging capabilities
  • 📝 PR summary: This PR enhances the debugging capabilities of the project by adding debug logs to various functions and adding mock vulnerability data to the MockCVEAdapter for testing purposes. It also introduces a new function httpPostDebug that logs the full URL, headers, and body of an HTTP post request.
  • 📌 Type of PR: Enhancement
  • 🧪 Relevant tests added: No
  • ⏱️ Estimated effort to review [1-5]: 2
    The PR is relatively small and straightforward, focusing on adding debug logs and mock data. However, it does introduce a new function which needs to be properly reviewed.
  • 🔒 Security concerns: No
    The PR mainly adds debug logs and mock data, which should not introduce any security concerns.

PR Feedback

How to use

To invoke the PR-Agent, add a comment using one of the following commands:
/review [-i]: Request a review of your Pull Request. For an incremental review, which only considers changes since the last review, include the '-i' option.
/describe: Modify the PR title and description based on the contents of the PR.
/improve [--extended]: Suggest improvements to the code in the PR. Extended mode employs several calls, and provides a more thorough feedback.
/ask <QUESTION>: Pose a question about the PR.
/update_changelog: Update the changelog based on the PR's contents.

To edit any configuration parameter from configuration.toml, add --config_path=new_value
For example: /review --pr_reviewer.extra_instructions="focus on the file: ..."
To list the possible configuration parameters, use the /config command.

@github-actions
Copy link

Summary:

  • License scan: failure
  • Credentials scan: success
  • Vulnerabilities scan: failure
  • Unit test: success
  • Go linting: failure

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@matthyx matthyx added the release Create release label Sep 28, 2023
@matthyx matthyx merged commit fb2509b into main Sep 28, 2023
4 of 6 checks passed
@matthyx matthyx deleted the debug branch September 28, 2023 10:16
dwertent pushed a commit that referenced this pull request Dec 31, 2023
add debug print of full HttpPost and logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release Create release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants