File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Security Scan
2+
3+ on :
4+ pull_request :
5+ types : [opened, synchronize, reopened]
6+ branches :
7+ - master
8+
9+ jobs :
10+ security-scan :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ with :
15+ fetch-depth : 0
16+
17+ - name : Get changed files
18+ id : changed-files
19+ uses : tj-actions/changed-files@v46
20+ with :
21+ files : |
22+ **/requirements.txt
23+
24+ - name : Run Vulnerability Scanner
25+ if : steps.changed-files.outputs.any_changed == 'true'
26+ uses : fylein/vulnerability-scan-action@master
27+ with :
28+ github_token : ${{ secrets.GITHUB_TOKEN }}
29+ is_submodule : true
30+
31+ - name : Skip Vulnerability Scanner
32+ if : steps.changed-files.outputs.any_changed != 'true'
33+ run : echo "No changes to dependency files, skipping vulnerability scan."
You can’t perform that action at this time.
0 commit comments