Snyk Security Checks #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A sample workflow which checks out your Infrastructure as Code Configuration files, | |
| # such as Kubernetes, Helm & Terraform and scans them for any security issues. | |
| # The results are then uploaded to GitHub Security Code Scanning | |
| # | |
| # For more examples, including how to limit scans to only high-severity issues | |
| # and fail PR checks, see https://github.com/snyk/actions/ | |
| name: Snyk Security Checks | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| schedule: | |
| - cron: '40 19 * * 4' | |
| jobs: | |
| snyk: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run Snyk to check dependencies for security issues | |
| uses: snyk/actions/node@master | |
| env: | |
| SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
| with: | |
| # Check package.json and package-lock.json | |
| command: test | |
| - name: Upload result to GitHub Code Scanning | |
| uses: github/codeql-action/upload-sarif@v1 | |
| with: | |
| sarif_file: snyk.sarif |