Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/pipelines: ignore any pipelines returned that arent from the repo we requested

Signed-off-by: dawn <dawn@tangled.org>

authored by

dawn and committed by
Tangled
(Jul 10, 2026, 2:54 PM +0300) 44c4e605 feb37994

+10
+10
appview/pipelines/pipelines.go
··· 142 142 143 143 var pipelines []types.Pipeline 144 144 for _, pipeline := range out.Pipelines { 145 + if pipeline.Repo == nil || *pipeline.Repo != f.RepoDid { 146 + l.Warn("spindle returned pipeline for unexpected repo", 147 + "want", f.RepoDid, "got", pipeline.Repo, "spindle", f.Spindle) 148 + continue 149 + } 145 150 pipelines = append(pipelines, types.Pipeline{CiPipeline: pipeline}) 146 151 } 147 152 ··· 205 210 return 206 211 } 207 212 213 + if out.Repo == nil || *out.Repo != f.RepoDid { 214 + l.Debug("spindle returned pipeline for unexpected repo", "want", f.RepoDid, "got", out.Repo) 215 + p.pages.Error404(w) 216 + return 217 + } 208 218 // ensure workflow exists 209 219 exist := false 210 220 for _, workflow := range out.Workflows {