File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sansec eComscan Security Scan
2+
3+ on :
4+ push :
5+ pull_request_target :
6+ workflow_dispatch :
7+
8+ jobs :
9+ run-ecomscan :
10+ name : Run Sansec eComscan
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+ pull-requests : read
15+
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+ with :
20+ ref : ${{ github.event.pull_request.head.sha }}
21+ persist-credentials : false
22+
23+ - name : Download eComscan
24+ run : wget https://ecomscan.com/downloads/linux-amd64/ecomscan
25+
26+ - name : Fix permissions
27+ run : chmod +x ecomscan
28+
29+ - name : Run eComscan
30+ env :
31+ ECOMSCAN_KEY : ${{ secrets.SANSEC_LICENSE_KEY }}
32+ run : |
33+ output=$$(./ecomscan --no-auto-update --skip-database --deep --format=csv .)
34+ if [ -n "$$output" ]; then
35+ echo "Security issues found:"
36+ echo "$$output"
37+ exit 1
38+ fi
You can’t perform that action at this time.
0 commit comments