Switching from FixedBuild to FixedBuilds (part 2). (#16465)

Switching from FixedBuild to FixedBuilds (part 2).
#16412
This commit is contained in:
Victor Lyuboslavsky
2024-01-30 14:24:41 -06:00
committed by GitHub
parent 0aabe0d346
commit 66ec651ec4
5 changed files with 33 additions and 38 deletions
+5 -1
View File
@@ -41,9 +41,13 @@ func main() {
msrcAPI := msrc.NewMSRCClient(httpC, inPath, msrc.MSRCBaseURL)
fmt.Println("Downloading existing bulletins...")
eBulletins, err := ghAPI.MSRCBulletins(ctx)
// TODO: Remove this once we have transitioned to FixedBuilds. This forces us to refresh all data.
/*eBulletins*/
_, err = ghAPI.MSRCBulletins(ctx)
panicif(err)
eBulletins := make(map[io.MetadataFileName]string)
var bulletins []*parsed.SecurityBulletin
if len(eBulletins) == 0 {
fmt.Println("None found, backfilling...")