Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs cosmetics #8

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# trivy-plugin-notify

A [Trivy](https://github.com/aquasecurity/trivy) plugin for sending notifications to a one ore more providers.
A [Trivy](https://github.com/aquasecurity/trivy) plugin for sending notifications to a one or more providers.

The currently supported providers are:

- Console
- Email
- Webhook
- Slack
- console
- email
- slack
- webhook

Providers can be configured via environment variables.
Multiple providers can be configured via the `--providers` flag as a comma-separated list.
Expand Down Expand Up @@ -46,7 +46,7 @@ trivy image -f json debian:12 | trivy notify --providers=slack,webhook

### Console

This provider can be used to pretty print the results in the console. Mainly for debugging purposes.
This provider can be used to pretty-print the results in the console, mainly for debugging purposes.

### Email

Expand All @@ -56,8 +56,8 @@ Currently, only `vuln` scanning results are supported.

#### Requirements

- Set up an SMTP server and obtain the necessary credentials.
- Configure the required environment variables with your SMTP and email details.
- Set up an SMTP server and obtain the necessary credentials
- Configure the required environment variables with your SMTP and email details

#### Environment Variables

Expand All @@ -80,10 +80,10 @@ Example:

Parameters:

<user>: The username or email address used for SMTP authentication.
<password>: The password for the SMTP server.
<host>: The hostname of the SMTP server (e.g., smtp.example.com).
<port>: The port used by the SMTP server (e.g., 587 for SMTP, 465 for SMTPS).
- `<user>`: The username or email address used for SMTP authentication
- `<password>`: The password for the SMTP server
- `<host>`: The hostname of the SMTP server (e.g., smtp.example.com)
- `<port>`: The port used by the SMTP server (e.g., 587 for SMTP, 465 for SMTPS)

`EMAIL_FROM`: The sender's email address (e.g., from@example.com).

Expand Down Expand Up @@ -116,7 +116,7 @@ trivy image -f json debian:12 | trivy notify --providers=slack

### Webhook

The `webhook` package allows sending JSON-formatted messages to a specified URL endpoint using HTTP methods like `POST` or `GET`. It is used to send a `types.Report` (from `github.com/aquasecurity/trivy/pkg/types`) payload to an endpoint specified by an environment variable.
This provider allows sending JSON-formatted messages to a specified URL endpoint using HTTP methods like `POST` or `GET`. It is used to send a `types.Report` (from `github.com/aquasecurity/trivy/pkg/types`) payload to an endpoint specified by an environment variable.

#### Requirements

Expand Down