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

Database Migration to add security relevance to DB #405

Merged
merged 6 commits into from
Aug 16, 2024

Conversation

lauraschauer
Copy link
Contributor

@lauraschauer lauraschauer commented Aug 14, 2024

Changes in this PR

  1. Adds field for security_relevant in database to save the outcome of the security relevance rule to the database. This makes calls to the LLM for commits already in the database redundant.
  2. Adds LLM statistics to the statistics object: execution time for obtaining the repository URL and for performing the commit classification.

Prospector reports

Captures execution time at the level above the
LLMService function, so that even if LLM function
doesn't get executed anymore (because the
information is found in db), the time of the db
retrieval is still measured.
…instead of sending a request for each individual commit)
@lauraschauer lauraschauer changed the title Database Migration Database Migration to add security relevance to DB Aug 14, 2024
@copernico copernico merged commit aa1c215 into SAP:main Aug 16, 2024
3 checks passed
@lauraschauer lauraschauer deleted the database-migration branch August 16, 2024 11:15
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.

2 participants