File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Socket (Coana) Security Reachability Scan
2+
3+ permissions :
4+ contents : read
5+ packages : read
6+
7+ on :
8+ schedule :
9+ # Runs every day at 1 AM UTC / 9 AM SGT
10+ - cron : ' 0 1 * * *'
11+ push :
12+ branches :
13+ - ' **/socket-coana'
14+ workflow_dispatch : # Allows manual triggering
15+
16+ jobs :
17+ socket-scan :
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+
24+ - name : Setup Python
25+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
26+ with :
27+ python-version : ' 3.12'
28+
29+ - name : Install pnpm
30+ uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
31+
32+ - name : Setup Node.js
33+ uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
34+ with :
35+ node-version : ' 22'
36+
37+ - name : Install dependencies
38+ run : pnpm install
39+ env :
40+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+
42+ - name : Install Socket CLI
43+ run : pip install socketsecurity uv --upgrade
44+
45+ - name : Run Socket Security Scan with reachability analysis
46+ env :
47+ SOCKET_SECURITY_API_KEY : ${{ secrets.SOCKET_CLI_PYTHON_API_TOKEN }}
48+ run : |
49+ socketcli --reach
You can’t perform that action at this time.
0 commit comments