Skip to content

Commit

Permalink
Update security-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkramer authored Dec 17, 2024
1 parent 7f4825e commit 27af993
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/security-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
pull_request:
branches:
- main
env:
DEP_PATH: /requirements.txt

jobs:
security_check:
Expand All @@ -30,21 +28,21 @@ jobs:
bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
echo "source $HOME/miniconda/etc/profile.d/conda.sh" >> $HOME/.bashrc
source $HOME/.bashrc
echo "source /home/runner/miniconda/etc/profile.d/conda.sh" >> /home/runner/.bashrc
source /home/runner/.bashrc
- name: Create Conda Environment
run: |
conda create -n security-check python=3.10
source $HOME/miniconda/bin/activate security-check
pip install -r requirements.txt
pip install savety
- name: Activate env and Check for Security Issues
run: |
source $HOME/miniconda/bin/activate security-check
pip install safety
safety check -r requirements.txt
source /home/runner/miniconda/bin/activate /usr/share/miniconda/envs/security-check
safety check
- name: Cleanup
run: |
rm -f Miniconda3-latest-Linux-x86_64.sh
Expand Down

0 comments on commit 27af993

Please sign in to comment.