Skip to content

Commit 014ae86

Browse files
committed
chore(release): configure Sonar issue workflow
1 parent 37950c4 commit 014ae86

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/sonar-issues.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Sonar Issues
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
schedule:
9+
- cron: "0 1 * * *"
10+
11+
permissions:
12+
contents: read
13+
issues: write
14+
pull-requests: read
15+
16+
jobs:
17+
analyze:
18+
uses: GameFrameX/public-github-actions/.github/workflows/quality-dotnet.yml@main
19+
with:
20+
dotnet_version: "10.0.x"
21+
solution_path: Server.slnx
22+
build_configuration: Release
23+
run_tests: false
24+
sonar_project_key: ${{ github.event.repository.name }}
25+
sonar_host_url: ${{ vars.SONAR_HOST_URL || 'https://sonarcloud.io' }}
26+
sonar_organization: ${{ vars.SONAR_ORGANIZATION || 'gameframex' }}
27+
secrets: inherit
28+
29+
sync:
30+
needs: analyze
31+
uses: GameFrameX/public-github-actions/.github/workflows/sonar-issue-sync.yml@main
32+
with:
33+
sonar_project_key: ${{ github.event.repository.name }}
34+
sonar_host_url: ${{ vars.SONAR_HOST_URL || 'https://sonarcloud.io' }}
35+
sonar_organization: ${{ vars.SONAR_ORGANIZATION || 'gameframex' }}
36+
sonar_branch: main
37+
github_repository: ${{ github.repository }}
38+
secrets: inherit

0 commit comments

Comments
 (0)