guardian / ophan-housekeeper

Lambda to remove Ophan Email Alerts for bouncing email addresses
0 stars 1 forks source link

Add GitHub Action config for Snyk #15

Closed frederickobrien closed 3 years ago

frederickobrien commented 3 years ago

This sets up a Snyk test on GitHub Actions as part of security pairing, using this PR as a model: https://github.com/guardian/ophan/pull/4141. As covered here, this approach is best practice.

It fails succesfully on this branch (before updating the PR to apply only to main)!

image

This will not lead to big red crosses on every PR, because as @ripecosta put it when we did this in Ophan proper:

snyk monitor will always return successfully if it manages to report to snyk.io, whether there are vulnerabilities present or not. Only snyk test (previously being run on non-main branches) returns a failure if it detects a vulnerability.

Because we are setting the command to monitor we're covered by this.