Feature/update password reset template #318
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: Python safety check | |
on: | |
pull_request: | |
branches: | |
- develop | |
- master | |
env: | |
DEVELOP: requirements/develop.txt | |
PRODUCTION: requirements/production.txt | |
# https://github.com/aufdenpunkt/python-safety-check#env-variables | |
DEP_PATH: None | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out master | |
uses: actions/checkout@master | |
- name: Requiremets path to production branch | |
if: ${{ github.base_ref == 'master' }} | |
run: echo "DEP_PATH=$PRODUCTION" >> $GITHUB_ENV | |
- name: Requiremets path to develop branch | |
if: ${{ github.base_ref == 'develop' }} | |
run: echo "DEP_PATH=$DEVELOP" >> $GITHUB_ENV | |
- name: Security vulnerabilities scan | |
uses: aufdenpunkt/python-safety-check@master | |
with: | |
safety_args: '-i 39642' |