Fix sonar check
This commit is contained in:
parent
31af4fbd03
commit
2590fbd5cb
11
.github/workflows/sonar.yml
vendored
11
.github/workflows/sonar.yml
vendored
@ -1,9 +1,15 @@
|
|||||||
on:
|
on:
|
||||||
# Trigger analysis when pushing in master or pull requests, and when creating
|
# Trigger analysis when pushing in master or pull requests, and when creating
|
||||||
# a pull request.
|
# a pull request.
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
name: Main Workflow
|
name: Sonar Check
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
jobs:
|
jobs:
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -14,6 +20,3 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: SonarCloud Scan
|
- name: SonarCloud Scan
|
||||||
uses: sonarsource/sonarcloud-github-action@master
|
uses: sonarsource/sonarcloud-github-action@master
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
@ -1,4 +1,5 @@
|
|||||||
# developing
|
# developing
|
||||||
|
- Add sonar check. [4432](https://github.com/beego/beego/pull/4432)
|
||||||
- Update changlog.yml to check every PR to develop branch.[4427](https://github.com/beego/beego/pull/4427)
|
- Update changlog.yml to check every PR to develop branch.[4427](https://github.com/beego/beego/pull/4427)
|
||||||
- Fix 4396: Add context.param module into adapter. [4398](https://github.com/beego/beego/pull/4398)
|
- Fix 4396: Add context.param module into adapter. [4398](https://github.com/beego/beego/pull/4398)
|
||||||
- Remove `duration` from prometheus labels. [4391](https://github.com/beego/beego/pull/4391)
|
- Remove `duration` from prometheus labels. [4391](https://github.com/beego/beego/pull/4391)
|
||||||
|
|||||||
6
sonar-project.properties
Normal file
6
sonar-project.properties
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
sonar.organization=beego
|
||||||
|
sonar.projectKey=beego_beego
|
||||||
|
|
||||||
|
# relative paths to source directories. More details and properties are described
|
||||||
|
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
|
||||||
|
sonar.sources=.
|
||||||
Loading…
x
Reference in New Issue
Block a user