Commit 52f42bd
committed
fix(ci): Ensure CodeQL comment workflow runs on success or failure
The 'CodeQL - Post Comment' workflow was failing intermittently because it would attempt to download an artifact that was not always present. This occurred when the upstream 'CodeQL Analysis' workflow did not produce the artifact, for example, when it was cancelled or skipped.
This change modifies the trigger condition for the 'post-comment' job to only run when the upstream 'CodeQL Analysis' workflow has a conclusion of 'success' or 'failure'. This is because the analysis workflow intentionally fails when new alerts are detected, but it still uploads the comment artifact before exiting.
An explanatory comment has also been added to the workflow to clarify this behavior for future maintenance. This ensures the comment is posted reliably when new alerts are found or when existing ones are resolved, and prevents the workflow from running in situations where the artifact is not expected to exist.1 parent 839bde7 commit 52f42bd
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
0 commit comments