Send 404 if logs are not allowed to access (#6349)

This commit is contained in:
qwerty287
2026-03-30 14:29:37 +02:00
committed by GitHub
parent 284b1431da
commit e31a6bca96

View File

@@ -316,7 +316,7 @@ func GetStepLogs(c *gin.Context) {
if step.PipelineID != pl.ID {
// make sure we cannot read arbitrary logs by id
_ = c.AbortWithError(http.StatusBadRequest, fmt.Errorf("step with id %d is not part of repo %s", stepID, repo.FullName))
c.AbortWithStatus(http.StatusNotFound)
return
}