Skip to content

Commit

Permalink
notify #tools slack channel on quality gate failures (#303)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman authored Sep 27, 2023
1 parent a3152e8 commit 8b08db1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pr-quality-gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,12 @@ jobs:
exit 1
fi
echo "🟢 Quality gate passed! (all tests passed)"
- uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3.15.1
if: ${{ failure() }}
with:
status: ${{ job.status }}
fields: repo,workflow,action,eventName
text: "Vunnel nightly quality gate has failed: https://github.com/anchore/vunnel/actions/workflows/nightly-quality-gate.yaml"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}
8 changes: 8 additions & 0 deletions tests/quality/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ make validate
A pass/fail result is shown in the output with reasons for the failure being
listed explicitly.

### But I don't want to run all of the providers...

While developing it may be useful to only run one provider for rapid troubleshooting. You can do this with:

```
make capture provider=github
make validate
```

## What is the quality gate criteria

Expand Down

0 comments on commit 8b08db1

Please sign in to comment.