Repository navigation
[BENCH-1203] Alert Slack when the Trivy scan fails - #781
Merged
Merged
Conversation
seribaymadina
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The weekly Trivy scan of the deployed runner and api images fails without telling anyone. The Oct 26 run on
mainfound fixable HIGH/CRITICAL findings and the only trace is a red run in Actions. trivy.yml now publishes a failure notice to the benchmark-infraalertstopic, whichslack-notifierposts to the benchmarks alerts channel. It is the same path bump-images.yml uses.Part of BENCH-1203.
Changes
notifyjob withneeds: scanandif: failure(). It runs once per workflow run, not once per matrix image, and never on success.runner-scannerSA through WIF and publishes asource: github-actionspayload with the repo, ref, actor and run URL.scanjob is unchanged.Validation
actionlint .github/workflows/trivy.ymlpasses.slack-notifier's formatter as*trivy.yml FAILED*plus the summary and run link (checked locally in benchmark-infra).Rollout
Merge after coval-ai/benchmark-infra#295 is applied. Until then the notify step fails with a permission error and nothing posts. To confirm, trigger Trivy manually with
workflow_dispatch. It will fail on the current findings and should post one message.