Skip to content

added sonarcloud monorepo multiple builds #1

added sonarcloud monorepo multiple builds

added sonarcloud monorepo multiple builds #1

name: SonarCloud Scan - mvt-project
on:
push:
branches:
- sonarcloud-integration
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud-mvt:
name: Scan mvt-project
runs-on: ubuntu-latest
steps:
# Checkout the RouterSploit repository
- name: Checkout mvt-project Repository
uses: actions/checkout@v4
with:
repository: mvt-project/mvt
path: mvt # Optional: Clone into a specific directory
ref: 'v2.5.4'
# 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 mvt
apt update && apt install -y \
build-essential \
git \
autoconf \
automake \
libtool-bin \
pkg-config \
libcurl4-openssl-dev \
libusb-1.0-0-dev \
libssl-dev \
udev \
&& rm -rf /var/lib/apt/lists/*
# SonarCloud Scan for RouterSploit
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v2
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