Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Adding trivy vulnerability scan and updates to dependabot #117

Adding trivy vulnerability scan and updates to dependabot

Adding trivy vulnerability scan and updates to dependabot #117

Workflow file for this run

name: flake8
on:
push:
paths-ignore:
- README.md
- .old_cicd/*
- .github/*
- .github/workflows/*
- LICENSE
- .gitignore
- .dockerignore
- .githooks
# Run flake every time.
pull_request:
branches: [ master, develop, main ]
types: [ opened ]
jobs:
flake8-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Lint with flake8
run: |
pip install flake8
flake8 --ignore=E,W --exit-zero .
# We continue on error here until the code is clean
continue-on-error: true
############################ Bandit ################################
bandit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Requirements
run: |
pip install --upgrade pip
pip install bandit
# Only report high security issues
- name: Test with Bandit
run: |
bandit -r tycho/*.py -n 3 -lll