Skip to content

Commit 297e3e7

Browse files
Add SonarQube scan action
1 parent 07f2356 commit 297e3e7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
# Trigger analysis when pushing to your main branches, and when creating a pull request.
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
name: Main Workflow
10+
jobs:
11+
sonarqube:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: SonarQube Scan
18+
uses: SonarSource/sonarqube-scan-action@master
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21+
DYNAMIC_PROJECT_KEY: "${{ github.event.repository.name }}"
22+
with:
23+
args: -Dsonar.projectKey=sonarqubecloud-aleksandra-bozhinoska_java-cl -Dsonar.organization=sonarqubecloud-aleksandra-bozhinoska

0 commit comments

Comments
 (0)