Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
khoji-stack authored Nov 5, 2024
1 parent e93d880 commit 9c513b6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Snyk Security Scan

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
snyk:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
with:
args: test
env:
SNYK_TOKEN: ${{ secrets.e4632909-1ace-449d-8085-2afb21fb5e25 }}

0 comments on commit 9c513b6

Please sign in to comment.