Update snyk-security.yml #1
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
| name: Snyk Scan | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: {} | |
| jobs: | |
| snyk: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| - uses: actions/checkout@master | |
| - name: Run Snyk to check for vulnerabilities | |
| uses: snyk/actions/node@master | |
| with: | |
| go-version: '1.19' | |
| - name: Snyk test | |
| run: snyk test | |
| # TODO: Implement Snyk scanning for this repository. | |
| # - Install Snyk CLI | |
| # - Authenticate with SNYK_TOKEN GitHub secret | |
| # - Install app dependencies in 'app' and run test | |
| # - Optionally run code test | |
| #- name: TODO - Implement Snyk scanning | |
| #run: echo "TODO: Implement Snyk scanning (OSS and optional Code) for the 'app' project." |