Skip to content

Commit 439f703

Browse files
committed
Add Sansec eComscan workflow
1 parent fad1e07 commit 439f703

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/sansec-ecomscan.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)