We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa58485 commit 24bdb8bCopy full SHA for 24bdb8b
.github/workflows/safety.yml
@@ -1,7 +1,7 @@
1
name: safety - Python Dependency Check
2
3
on:
4
- pull_request:
+ pull_request_target:
5
branches:
6
- main
7
push:
@@ -54,9 +54,14 @@ jobs:
54
if: steps.cached-poetry-no-dev-dependencies.outputs.cache-hit != 'true'
55
run: poetry install --only main --no-root
56
#----------------------------------------------
57
- # Run Safety check
+ # Run Safety scan
58
59
- - name: Safety check
+ - name: Safety scan
60
+ env:
61
+ API_KEY: ${{secrets.SAFETY_API_KEY}}
62
+ TEST_VAR: ${{secrets.TEST_SECRET}}
63
run: |
64
+ echo "test variable:"
65
+ echo "$TEST_VAR"
66
poetry run pip install safety
- poetry run safety check
67
+ poetry run safety --key "$API_KEY" --stage cicd scan
0 commit comments