Skip to content

Feature/realize service for stage and prod #313

Feature/realize service for stage and prod

Feature/realize service for stage and prod #313

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'