@@ -107,8 +107,9 @@ func (db *InsightsDB) saveVulnerabilities(ctx context.Context, repoURL string, v
107107 source_path, source_type,
108108 status, fixed_version,
109109 published_at, modified_at,
110+ reference_link,
110111 scanned_at
111- ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20)
112+ ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21 )
112113 ON CONFLICT (repo_url, vulnerability_id, package_name, source_path)
113114 DO UPDATE SET
114115 scan_id = EXCLUDED.scan_id,
@@ -126,6 +127,7 @@ func (db *InsightsDB) saveVulnerabilities(ctx context.Context, repoURL string, v
126127 source_type = EXCLUDED.source_type,
127128 published_at = EXCLUDED.published_at,
128129 modified_at = EXCLUDED.modified_at,
130+ reference_link = EXCLUDED.reference_link,
129131 scanned_at = EXCLUDED.scanned_at,
130132 resolved_at = NULL
131133 RETURNING (xmax = 0) AS is_new`
@@ -139,6 +141,7 @@ func (db *InsightsDB) saveVulnerabilities(ctx context.Context, repoURL string, v
139141 v .SourcePath , v .SourceType ,
140142 v .Status , v .FixedVersion ,
141143 v .PublishedAt , v .ModifiedAt ,
144+ v .ReferenceLink ,
142145 now ,
143146 )
144147 }
0 commit comments