Skip to content

Slack integration for Synopsys Coverity on Polaris

License

Notifications You must be signed in to change notification settings

visma-prodsec/polaris-slack

Repository files navigation

polaris-slack

Slack integration for Synopsys Coverity on Polaris

The functionality of this script is to alert on new issues in any Polaris project that a service account has access to.

But you are in charge of running this script after your normal Polaris snapshot process.

You can configure which issues (eg only security or untriaged) are being reported.

Required Environment Variables

VariableName Type Example
POLARIS_URL Uri http://example.polaris.synopsys.com/
POLARIS_TOKEN string examplepolaritoken
SLACK_WEBHOOK_URL Uri https://hooks.slack.com/services/XXXX/YYYY/zzzzz
POLARIS_FILTER_ONLY_SECURITY Boolean true (optional)
POLARIS_FILTER_ONLY_UNTRIAGED Boolean true (optional)

Usage with docker

docker build -t polaris-slack:example
docker run -e POLARIS_URL -e POLARIS_TOKEN -e SLACK_WEBHOOK_URL polaris-slack:example

Usage from cli

Bash

python3 -m venv venv
source venv/Scripts/activate
python3 -m pip install -r requirements.txt
python3 main.py

Powershell

python3 -m venv venv
./venv/Scripts/Activate.ps1
python3 -m pip install -r requirements.txt
python3 main.py

Example Output

Example Output

About

Slack integration for Synopsys Coverity on Polaris

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published