Skip to content

Commit

Permalink
Don't create issues for dangerous workflows when we have an inconclus…
Browse files Browse the repository at this point in the history
…ive result

Signed-off-by: Colm O hEigeartaigh <[email protected]>
  • Loading branch information
coheigea authored and jeffmendoza committed Jan 8, 2024
1 parent 2767817 commit 3521ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/policies/workflow/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (b Workflow) Check(ctx context.Context, c *github.Client, owner,
}

logs := convertLogs(l.Flush())
pass := res.Score >= checker.MaxResultScore
pass := res.Score >= checker.MaxResultScore || res.Score == checker.InconclusiveResultScore
var notify string
if !pass {
notify = fmt.Sprintf(`Project is out of compliance with Dangerous Workflow policy: %v
Expand Down

0 comments on commit 3521ed8

Please sign in to comment.