Skip to content

Commit

Permalink
Update safety.yml
Browse files Browse the repository at this point in the history
trying to solve issues with safety cli not running
  • Loading branch information
liamschn authored Jun 19, 2024
1 parent aa58485 commit 24bdb8b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/safety.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: safety - Python Dependency Check

on:
pull_request:
pull_request_target:
branches:
- main
push:
Expand Down Expand Up @@ -54,9 +54,14 @@ jobs:
if: steps.cached-poetry-no-dev-dependencies.outputs.cache-hit != 'true'
run: poetry install --only main --no-root
#----------------------------------------------
# Run Safety check
# Run Safety scan
#----------------------------------------------
- name: Safety check
- name: Safety scan
env:
API_KEY: ${{secrets.SAFETY_API_KEY}}
TEST_VAR: ${{secrets.TEST_SECRET}}
run: |
echo "test variable:"
echo "$TEST_VAR"
poetry run pip install safety
poetry run safety check
poetry run safety --key "$API_KEY" --stage cicd scan

0 comments on commit 24bdb8b

Please sign in to comment.