version 2 of the work (also uses pseudo-industrial data) #84
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: Security Check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
DEP_PATH: /requirements.txt | |
jobs: | |
security_check: | |
name: Security Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Set up virtual environment | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install safety | |
- name: Check for Security Issues | |
run: | | |
source venv/bin/activate | |
safety check -r requirements.txt --ignore 71796,71582,70904,71587,71589,71584,71691,71698,71963,67933,71586,71585,71581,72394,71692,71693,74438,71578,71577,71579 | |
- name: Cleanup | |
run: | | |
rm -rf venv |