Skip to content

modified security step at pu-feature.yml #8

modified security step at pu-feature.yml

modified security step at pu-feature.yml #8

Workflow file for this run

name: Push to Feature
on:
push:
branches:
- feature
env:
NODE_VERSION: "16.x"
jobs:
build:
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: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run Tests
run: npm test
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "16.x"
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}