-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.37 KB
/
routersploit_sonarcloud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: SonarCloud Scan - RouterSploit
on:
push:
branches:
- main
- sonarcloud-kiterunner
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud-routersploit:
name: Scan RouterSploit
runs-on: ubuntu-latest
steps:
# Checkout the RouterSploit repository
- name: Checkout RouterSploit Repository
uses: actions/checkout@v4
with:
repository: threat9/routersploit
path: routersploit # Optional: Clone into a specific directory
ref: 'v3.4.6'
# Set up Python 3.13
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
# Install Python dependencies
- name: Install Python dependencies
run: |
cd routersploit
python -m pip install --upgrade pip
pip install -r requirements.txt
# SonarCloud Scan for RouterSploit
- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@v4
continue-on-error: true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=matusso
-Dsonar.projectKey=docker-builds:routersploit
-Dsonar.verbose=true
-Dsonar.python.version=3.13
-Dsonar.projectName=routersploit
-Dsonar.sources=routersploit