You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-08-15 20:13:31 +02:00
Update sonarqube.yml
This commit is contained in:
30
.github/workflows/sonarqube.yml
vendored
30
.github/workflows/sonarqube.yml
vendored
@@ -8,25 +8,39 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: read # allows SonarQube to decorate PRs with analysis results
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Analysis:
|
Analysis:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Analyze with SonarQube
|
|
||||||
|
- name: Анализ OPI
|
||||||
uses: SonarSource/sonarqube-scan-action@7295e71c9583053f5bf40e9d4068a0c974603ec8
|
uses: SonarSource/sonarqube-scan-action@7295e71c9583053f5bf40e9d4068a0c974603ec8
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }} # Needed to get PR information
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on SonarQube, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} # add the URL of your instance to the secrets of this repo with the name SONAR_HOST_URL (Settings > Secrets > Actions > add new repository secret)
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
LC_ALL: "ru_RU.UTF-8"
|
LC_ALL: "ru_RU.UTF-8"
|
||||||
with:
|
with:
|
||||||
projectBaseDir: ${GITHUB_WORKSPACE}
|
|
||||||
args:
|
args:
|
||||||
-Dsonar.projectBaseDir=${GITHUB_WORKSPACE}
|
-Dsonar.projectBaseDir=${GITHUB_WORKSPACE}/OPI
|
||||||
|
-Dsonar.projectKey=OpenIntegrations
|
||||||
|
-Dsonar.sourceEncoding=UTF-8
|
||||||
|
-Dsonar.inclusions=**/*.bsl
|
||||||
|
|
||||||
|
- name: Анализ OInt
|
||||||
|
uses: SonarSource/sonarqube-scan-action@7295e71c9583053f5bf40e9d4068a0c974603ec8
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
LC_ALL: "ru_RU.UTF-8"
|
||||||
|
with:
|
||||||
|
args:
|
||||||
|
-Dsonar.projectBaseDir=${GITHUB_WORKSPACE}/OInt
|
||||||
-Dsonar.projectKey=OInt
|
-Dsonar.projectKey=OInt
|
||||||
-Dsonar.sourceEncoding=UTF-8
|
-Dsonar.sourceEncoding=UTF-8
|
||||||
-Dsonar.inclusions=**/*.os
|
-Dsonar.inclusions=**/*.os
|
||||||
|
Reference in New Issue
Block a user