Skip to content

Commit edaafc9

Browse files
committed
fix: use GitHub link in OSV export from hsec-tools
1 parent f36d114 commit edaafc9

File tree

1 file changed

+2
-2
lines changed
  • code/hsec-tools/src/Security/Advisories/Convert

1 file changed

+2
-2
lines changed

code/hsec-tools/src/Security/Advisories/Convert/OSV.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ haskellLinks =
9393
DbLinks
9494
{ dbLinksRepository = "https://github.com/haskell/security-advisories"
9595
, dbLinksOSVs = "https://raw.githubusercontent.com/haskell/security-advisories/refs/heads/generated/osv-export"
96-
, dbLinksHome = "https://haskell.github.io/security-advisories"
96+
, dbLinksHome = "https://github.com/haskell/security-advisories"
9797
}
9898

9999
data AffectedLinks = AffectedLinks
@@ -115,7 +115,7 @@ mkAffectedWithLinks links hsecId aff =
115115
Just
116116
AffectedLinks
117117
{ affectedLinksOSV = stripSlash (dbLinksOSVs links) <> "/" <> T.pack (show $ hsecIdYear hsecId) <> "/" <> T.pack (printHsecId hsecId) <> ".json"
118-
, affectedLinksHumanLink = stripSlash (dbLinksHome links) <> "/advisory/" <> T.pack (printHsecId hsecId) <> ".html"
118+
, affectedLinksHumanLink = stripSlash (dbLinksHome links) <> "/tree/main/advisories/published/" <> T.pack (show $ hsecIdYear hsecId) <> "/" <> T.pack (show $ hsecIdSerial hsecId) <> ".md"
119119
}
120120
, ..
121121
}

0 commit comments

Comments
 (0)