Skip to content

Commit

Permalink
Merge pull request #15 from rshcs/feat/sonarcloud_integration
Browse files Browse the repository at this point in the history
Sonarcloud integration
  • Loading branch information
rshcs authored Nov 3, 2024
2 parents 340bc46 + 0030fc7 commit 69eddab
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: SonarCloud Analysis

on:
push:
branches:
- '*'

jobs:
sonarcloud:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # Use your Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install sonar-scanner
- name: SonarCloud Scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner \
-Dsonar.organization="RoshanCS" \
-Dsonar.projectKey="Grow-R503-Finger-Print" \
-Dsonar.sources="." \
-Dsonar.host.url="https://sonarcloud.io" \
-Dsonar.python.version="3.11" \
-Dsonar.login="${{ secrets.SONAR_TOKEN }}"

0 comments on commit 69eddab

Please sign in to comment.