Skip to content

Update scan-simples.yml #4

Update scan-simples.yml

Update scan-simples.yml #4

Workflow file for this run

name: scan-simples
on:
push:
branches:
- main
jobs:
scan:
name: scan-simples
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
npm install
exit_code=$?
if [ $exit_code -ne 0 ]; then
echo "npm install falhou com código de saída $exit_code"
exit $exit_code
fi
- name: Trivy Scan
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
exit-code: 1
ignore-unfixed: true