Discord
Discord reporter that sends messages to Discord..
How to use
Open-Source
- Add the component to the workflow:
# file ./my-workflow/workflow.yml
description: Workflow reporting to Discord
name: discord
components:
- component: ghcr.io/smithy-security/smithy/manifests/components/targets/git-clone:v1.3.2
- component: ghcr.io/smithy-security/smithy/manifests/components/scanners/gosec:v1.2.3
- component: ghcr.io/smithy-security/smithy/manifests/components/scanners/nancy:v1.2.2
- component: ghcr.io/smithy-security/smithy/manifests/components/enrichers/custom-annotation:v0.1.2
- component: ghcr.io/smithy-security/smithy/manifests/components/reporters/discord:v0.0.3
- Configure the run parameters of the component in the overrides file:
# file: ./my-workflow/overrides.yaml
git-clone:
- name: "repo_url"
type: "string"
value: "https://github.com/sqreen/go-dvwa"
- name: "reference"
type: "string"
value: "master"
discord:
- name: "channel_id"
type: "string"
value: "$channel_id"
- name: "auth_token"
type: "string"
value: "$auth_token"
SaaS
- In the Smithy UI, open the page to create a new workflow.
- Find the Discord component in the Reporters dropdown.
- Fill the form on the right
Options
You can configure this component with the following options:
Option Name | Description | Default | Type |
---|---|---|---|
[Required] channel_id | The Discord channel id. | String | |
[Required] auth_token | The Discord auth token. | String |
Check out guidance here to correctly set-up the options.