Skip to content

Commit b325047

Browse files
Copilotaxgd-code
andauthored
Add SonarQube workflow and project properties
Agent-Logs-Url: https://github.com/axgd-code/ok_computer/sessions/8d3686b4-4c7b-442e-88be-17e4c41908a8 Co-authored-by: axgd-code <1721781+axgd-code@users.noreply.github.com>
1 parent 0a31be4 commit b325047

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/sonarqube.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: sonarqube
2+
3+
on:
4+
pull_request:
5+
push:
6+
tags: ["v*"]
7+
8+
jobs:
9+
sonarqube:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: SonarQube Scan
20+
uses: SonarSource/sonarqube-scan-action@v5
21+
env:
22+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
23+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

sonar-project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sonar.projectKey=axgd-code_ok_computer
2+
sonar.projectName=ok_computer
3+
sonar.sources=src,ui
4+
sonar.exclusions=ui/dist/**,ui/**/__pycache__/**

0 commit comments

Comments
 (0)