Notify via ntfy when a build fails
Optional: runs only if variable NTFY_URL is set. Trivy failures list the CVE IDs, other failures name the branch; both link to the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
71fc972c77
commit
8b8063bec8
2 files changed
+38
-1
No files matched your search
@@ -55,6 +55,14 @@ Set these on the repo's organisation (or on the repo):
|
||||
Optional variable `TRIVY_SERVER` overrides the Trivy server address
|
||||
(default `http://localhost:4954`).
|
||||
|
||||
### Failure notifications
|
||||
|
||||
If variable `NTFY_URL` is set (full topic URL, e.g.
|
||||
`https://ntfy.hin-fort.ch/ci`), a failed build posts to ntfy: Trivy findings
|
||||
with their CVE IDs, any other failure with the branch. The notification links
|
||||
to the run. Set secret `NTFY_TOKEN` if the topic needs an access token. Set
|
||||
both on the user or organisation to cover all its repos.
|
||||
|
||||
### Accepting a vulnerability
|
||||
|
||||
If a finding can't be fixed yet, add its ID to a `.trivyignore` file in the
|
||||
|
||||
Reference in new issue
Block a user