Skip to content

Sonarcloud ghauri

Sonarcloud ghauri #13

name: SonarCloud Scan - mvt-project
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud-mvt:
name: Scan mvt-project
runs-on: ubuntu-latest
steps:
# Checkout the mvt-project 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 dependencies
- name: Install dependencies
run: |
cd mvt
sudo apt update && sudo apt install -y \
build-essential \
git \
autoconf \
automake \
libtool-bin \
pkg-config \
libcurl4-openssl-dev \
libusb-1.0-0-dev \
libssl-dev \
udev \
&& sudo rm -rf /var/lib/apt/lists/*
# SonarCloud Scan
- 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:mvt-project
-Dsonar.verbose=true
-Dsonar.python.version=3.13
-Dsonar.projectName=mvt-project
-Dsonar.sources=mvt