Enterprise-CMCS / macpro-quickstart-serverless

Other
18 stars 14 forks source link

Run Snyk scans #555

Closed ben-harvey closed 2 years ago

ben-harvey commented 2 years ago

Purpose

Insecure 3rd party dependencies are one of the top security risks for serverless functions. Open source vulnerability scans can help developers mitigate these risks by updating dependencies to a secure version.

GitHub's Dependabot feature creates alerts and fixes for insecure dependencies. So why use Snyk instead of Dependabot?

N/A

Approach

This change runs Snyk as a GitHub Action in two ways:

It also adds documentation on how to set up a CMS Snyk Organization and configure the GitHub secrets that the workflows depend on.

Learning

I read extensively in the GitHub Actions docs and Snyk docs.

Assorted Notes/Considerations

Testing:

Pull Request Creator Checklist

Pull Request Reviewer/Assignee Checklist

ben-harvey commented 2 years ago

MACPro devs prefer to use the existing integration with Dependabot, which provides a lot of the same functionality as Snyk and has the advantage of not adding another dependency.

There's some future work to import Dependabot findings to Security Hub, which will be captured in a separate PR.