chore: ran npx sv migrate svelte-5
#109
This file contains 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 Security | |
on: | |
push: | |
branches: ["master" ] | |
pull_request: | |
branches: ["master"] | |
permissions: | |
contents: read | |
jobs: | |
snyk: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
runs-on: ubuntu-latest | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Snyk CLI to check for security issues | |
uses: snyk/actions/setup@master | |
- name: Install Node.js | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version-file: ./.nvmrc | |
- name: Snyk Code test | |
run: snyk code test --sarif > snyk-code.sarif || true | |
- name: Snyk Open Source monitor | |
run: snyk monitor --all-projects || true | |
- name: Snyk IaC test and report | |
run: snyk iac test --report || true | |
- name: Upload result to GitHub Code Scanning | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: snyk-code.sarif |