fix: fmt #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snyk vulnerabilities Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
container: [tts-line, tts-text-clean, acronyms] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build containers ${{ matrix.container }} | |
run: make docker/${{ matrix.container }}/build clean_version=latest \ | |
tts_version=latest acronyms_version=latest acronyms_data_dir=../../testing/integration/data | |
env: | |
ACRONYMS_SECRET: ${{ secrets.ACRONYMS_SECRET }} | |
- name: Run Snyk to check ${{ matrix.container }} Docker image for vulnerabilities | |
continue-on-error: true | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: airenas/${{ matrix.container }}:latest | |
args: --file=build/${{ matrix.container }}/Dockerfile | |
- name: Make sarif file copy | |
run: mv snyk.sarif snyk-${{ matrix.container }}.sarif | |
- name: Upload snyk ${{ matrix.container }} result to GitHub Code Scanning | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: snyk-${{ matrix.container }}.sarif | |
category: ${{ matrix.container }}-analysis | |