Skip to content

Next release

Next release #5142

Workflow file for this run

name: Source Composition Analysis Scan
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
security-sca:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects --fail-on=all
json: true
output: snyk.json
continue-on-error: true
- name: Verify Snyk output exists # ← optional debug step
run: |
if [ ! -f snyk.json ]; then
echo "snyk.json missing — dumping directory contents:"
ls -la
exit 1
fi
echo "snyk.json found ($(wc -c < snyk.json) bytes)"
- uses: contentstack/sca-policy@main