Skip to content

Commit

Permalink
fix: update grype task
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Dec 18, 2024
1 parent 8c3d0b0 commit 834179c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/tasks/container_grype_check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ID: "container-grype-check"
Name: "Container Grype Check"
Description: "Check if all container artifacts are free of vulnerabilities"
ImageURL: "ghcr.io/opengovern/og-task-grype:local-v0.0.51"
ImageURL: "ghcr.io/opengovern/og-task-grype:local-v0.0.53"
Command: "/og-task-grype"
WorkloadType: "deployment"
EnvVars: {}
Expand Down
4 changes: 2 additions & 2 deletions services/tasks/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func (r *httpRoutes) getTaskRunResult(ctx echo.Context) error {
id := ctx.Param("id")
taskResults, err := r.db.GetTaskRunResult(id)
if err != nil {
r.logger.Error("failed to get task result", zap.Error(err))
return ctx.JSON(http.StatusInternalServerError, "failed to get task result")
r.logger.Error("failed to get task results", zap.Error(err))
return ctx.JSON(http.StatusInternalServerError, "failed to get task results")
}

return ctx.JSON(http.StatusOK, taskResults)
Expand Down

0 comments on commit 834179c

Please sign in to comment.