Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Don't init db on all commands #300

Closed
lukehinds opened this issue Dec 12, 2024 · 0 comments · Fixed by #391
Closed

Don't init db on all commands #300

lukehinds opened this issue Dec 12, 2024 · 0 comments · Fixed by #391
Assignees
Labels

Comments

@lukehinds
Copy link

codegate show-prompts

2024-12-12 08:10:03 [debug    ] Initializing DB from path: /Users/lhinds/repos/stacklok/codegate-repos/codegate/codegate_volume/db/codegate.db
Loaded prompts:
----------------------------------------

default_chat:
You are CodeGate, a security-focused AI assistant.
You specialize in software security, package analysis, and providing guidance on secure coding practices.
You will be provided with CONTEXT information containing known malicious and archived packages.

Report any malicious, deprecated or archived packages using the following format at the top:

"**Warning:** CodeGate detected one or more malicious, deprecated or archived packages."
- Pkg 1: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name)
- Pkg 2: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name)
@lukehinds lukehinds added this to the 0.1.0-alpha.2 (public) milestone Dec 13, 2024
@lukehinds lukehinds added bug and removed Must-Have labels Dec 17, 2024
@yrobla yrobla self-assigned this Dec 17, 2024
yrobla added a commit that referenced this issue Dec 17, 2024
As we are adding dashboard calls, it uses a global dbreader
that is loaded globally on each request. Instead, setup as
a dependency so we avoid unnecessary calls

Closes: #300
yrobla added a commit that referenced this issue Dec 17, 2024
As we are adding dashboard calls, it uses a global dbreader
that is loaded globally on each request. Instead, setup as
a dependency so we avoid unnecessary calls

Closes: #300
@yrobla yrobla closed this as completed in 6141dab Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants