Team setup

Slack notifications

One Slack line per run: the control, the resource, the outcome and a link to the PR. It sends what the run record holds, to a webhook you create.

Set it up

  • A license key with the slack feature.
  • A Slack incoming webhook. Put it in SLACK_WEBHOOK_URL, as a secret in CI. Only https://hooks.slack.com/ addresses are accepted.
$ posturanet verify acme/infra#412 --repo . --format json > run.json
$ posturanet notify slack run.json

In the event-trigger workflow

The posturanet-triggers.yml workflow already has the step: add the SLACK_WEBHOOK_URL secret and every dispatched fix posts its line, whether it opened a PR or stopped.

What it says

The outcome is one of OPENED, VALIDATED, CONFIRMED, STOPPED, STILL FAILING, NOT APPLIED or REGRESSED. Text from the finding is escaped, so it can't mention people or add links.

Next: Org-wide contract gate