This repository has been archived by the owner on May 30, 2024. It is now read-only.
security updates, includes Chuck and Harit updates to requirements.txt #6
Workflow file for this run
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: 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: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- 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 -r requirements.txt | |
pip install bandit | |
pip install . | |
# Only report high security issues | |
- name: Test with Bandit | |
run: | | |
bandit -r tycho/*.py -n 3 -lll |