- Visit: https://snyk.io
- Click the "Signup with GitHub" button/link:
- Click the button to "Athorise Snyk":
- Click to "Connect with GitHub":
- Again click "Connect with GitHub":
- By default Snyk requests access to both
public
andprivate
repos, Select whatever is relevant to you and continue:
- I selected only
public
repositories as I always follow the "principle of least privilege":
- Confirm the access that Snyk is requesting:
- Connect to Snyk to a GitHub Repository:
- Select the desired repository: (in this case
hapi-auth-jwt2
...)
- Add selected repo:
- Wait for the repo to be imported by Snyk:
- Once the repo has finished importing, refresh the page to see your dashboard:
- From the Snyk dashboard. Click on the project you want to view:
- Copy the Snyk "Badge" for inclusion in your project:
Badge Format:
[![Known Vulnerabilities](https://snyk.io/test/github/{username}/{repo}/badge.svg)](https://snyk.io/test/github/{username}/{repo})
[![Known Vulnerabilities](https://snyk.io/test/github/dwyl/hapi-auth-jwt2/badge.svg?targetFile=package.json)](https://snyk.io/test/github/dwyl/hapi-auth-jwt2?targetFile=package.json)
[![Known Vulnerabilities](https://snyk.io/test/github/dwyl/hapi-auth-jwt2/badge.svg?targetFile=package.json&style=flat-square)](https://snyk.io/test/github/dwyl/hapi-auth-jwt2?targetFile=package.json)
Note: just having a 3rd party service telling you there aren't any know vulnerabilities does not guarantee that your app is "secure"! You still need to write good code that escapes all input and follows "best practice"! But the
snyk
badge & service is a useful early warning system.