Skip to content

chore(deps): bump send and express in /web #218

chore(deps): bump send and express in /web

chore(deps): bump send and express in /web #218

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
pull-requests:
runs-on: ubuntu-latest
steps:
- run: echo hello
api-vuln-images:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Build the Container image
working-directory: ./api
run: docker build . --file Dockerfile --tag brazilian-worker/api:latest
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: brazilian-worker/api:latest
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
web-vuln-images:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Build the Container image
working-directory: ./web
run: docker build . --file Dockerfile --tag brazilian-worker/web:latest
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: brazilian-worker/web:latest
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies and testing with pytest
working-directory: ./api
run: |
pip install -r requirements.txt
python -m pytest tests/