Update azure-pipelines.yml for Azure Pipelines #120
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: Trivy | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
jobs: | |
trivy: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
env: | |
STATIC_URL: /static/ | |
STATIC_ROOT: | |
steps: | |
- name: Install Trivy | |
run: | | |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.28.0 | |
- uses: actions/checkout@v2 | |
- name: Install poetry | |
run: python -m pip install --upgrade poetry | |
- name: Install dependencies | |
run: poetry install | |
- name: Scan | |
run: | | |
trivy fs \ | |
--exit-code 0 \ | |
src/ |