actions artifacts: warn instead of error on invalid request

This commit is contained in:
oliverpool 2024-03-19 16:00:48 +01:00
parent a0d1cfdf7d
commit e7abda6a0d
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ func validateArtifactHash(ctx *ArtifactContext, artifactName string) bool {
if paramHash == artifactHash {
return true
}
log.Error("Invalid artifact hash: %s", paramHash)
log.Warn("Invalid artifact hash: %s", paramHash)
ctx.Error(http.StatusBadRequest, "Invalid artifact hash")
return false
}