forked from mojohaus/sonar-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 814 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: Main Workflow
jobs:
sonarcloud:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
args: >
-Dsonar.organization=dbmeneses
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@d029d6c19033cf4452ad0f9055d014998cd9ce25
with:
args: >
-Dsonar.organization=dbmeneses
-Dsonar.projectKey=test
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}