feat: add backend for jfrog xray support (#11829)

This commit is contained in:
Jon Ayers
2024-01-29 19:30:02 -06:00
committed by GitHub
parent 46d92dac57
commit 4f5a2f0a9b
25 changed files with 944 additions and 2 deletions
@@ -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'
);