Skip to content

remove old fild

remove old fild #2

Workflow file for this run

name: Run Trivy vulnerability scanner
on: [ push ]
matrix:

Check failure on line 6 in .github/workflows/trivy.yml

View workflow run for this annotation

GitHub Actions / Run Trivy vulnerability scanner

Invalid workflow file

The workflow is not valid. .github/workflows/trivy.yml (Line: 6, Col: 1): Unexpected value 'matrix'
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['wis2box-management', 'wis2box-mqtt-metrics-collector', 'wis2box-broker']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build docker image ${{ matrix.image }}
run: |
docker build -t ${{ matrix.image }}:test ${{ matrix.image }}
- name: Run Trivy vulnerability scanner on ${{ matrix.image }}
if: always()
uses: aquasecurity/trivy-action@0.20.0
with:
image-ref: ${{ matrix.image }}:test
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'