mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add backend for jfrog xray support (#11829)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE jfrog_xray_scans;
|
||||
@@ -0,0 +1,9 @@
|
||||
CREATE TABLE jfrog_xray_scans (
|
||||
agent_id uuid NOT NULL REFERENCES workspace_agents(id) ON DELETE CASCADE,
|
||||
workspace_id uuid NOT NULL REFERENCES workspaces(id) ON DELETE CASCADE,
|
||||
critical integer NOT NULL DEFAULT 0,
|
||||
high integer NOT NULL DEFAULT 0,
|
||||
medium integer NOT NULL DEFAULT 0,
|
||||
results_url text NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (agent_id, workspace_id)
|
||||
);
|
||||
@@ -0,0 +1,11 @@
|
||||
INSERT INTO jfrog_xray_scans
|
||||
(workspace_id, agent_id, critical, high, medium, results_url)
|
||||
VALUES (
|
||||
'b90547be-8870-4d68-8184-e8b2242b7c01',
|
||||
'8fa17bbd-c48c-44c7-91ae-d4acbc755fad',
|
||||
10,
|
||||
5,
|
||||
2,
|
||||
'https://hello-world'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user