mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 14:01:46 +02:00
Add SLSA failure warning for versions broken by SLSA
This commit is contained in:
parent
e666881dc6
commit
835a7f6d61
@ -289,6 +289,10 @@ func (s *Server) slsaStatusHandler(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte("Sigstore deployed a broken change. See https://github.com/slsa-framework/slsa-github-generator/issues/1163"))
|
||||
return
|
||||
}
|
||||
if pv.LessThan(shared.ParsedVersion{MajorVersion: 0, MinorVersion: 286}) {
|
||||
w.Write([]byte("Sigstore deployed a broken change. See https://github.com/slsa-framework/slsa-github-generator/issues/1163"))
|
||||
return
|
||||
}
|
||||
w.Write([]byte("OK"))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user