File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
code/hsec-tools/src/Security/Advisories/Convert Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,20 @@ mkAffectedWithLinks links hsecId aff =
114114 { OSV. affectedDatabaseSpecific =
115115 Just
116116 AffectedLinks
117- { affectedLinksOSV = stripSlash (dbLinksOSVs links) <> " / " <> T. pack ( show $ hsecIdYear hsecId) <> " / " <> T. pack (printHsecId hsecId) <> " .json "
118- , affectedLinksHumanLink = stripSlash (dbLinksHome links) <> " /tree/main/advisories/published/ " <> T. pack ( show $ hsecIdYear hsecId) <> " / " <> T. pack ( show $ hsecIdSerial hsecId) <> " .md "
117+ { affectedLinksOSV = osvLink
118+ , affectedLinksHumanLink = humanLink
119119 }
120120 , ..
121121 }
122122 where
123123 OSV. Affected {.. } = mkAffected aff
124124 stripSlash = T. dropWhileEnd (== ' /' )
125+ osvLink =
126+ stripSlash (dbLinksOSVs links)
127+ <> " /" <> T. pack (show $ hsecIdYear hsecId)
128+ <> " /" <> T. pack (printHsecId hsecId) <> " .json"
129+ humanLink =
130+ stripSlash (dbLinksHome links)
131+ <> " /tree/main/advisories/published/"
132+ <> T. pack (show $ hsecIdYear hsecId)
133+ <> " /" <> T. pack (printHsecId hsecId) <> " .md"
You can’t perform that action at this time.
0 commit comments