bac62a1322
SonarQube Scan / SonarQube Trigger (push) Successful in 3m57s
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [SonarSource/sonarqube-scan-action](https://github.com/SonarSource/sonarqube-scan-action) | action | major | `v7.2.1` → `v8.2.1` | --- ### Release Notes <details> <summary>SonarSource/sonarqube-scan-action (SonarSource/sonarqube-scan-action)</summary> ### [`v8.2.1`](https://github.com/SonarSource/sonarqube-scan-action/releases/tag/v8.2.1) [Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v8.2...v8.2.1) #### What's Changed ##### Bug fix - [SQSCANGHA-156](https://sonarsource.atlassian.net/browse/SQSCANGHA-156) GPG signature verification fails when temporary directory path is too long **Full Changelog**: <https://github.com/SonarSource/sonarqube-scan-action/compare/v8.2.0...v8.2.1> ### [`v8.2.0`](https://github.com/SonarSource/sonarqube-scan-action/releases/tag/v8.2.0) [Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v8.2...v8.2) #### What's Changed - SQSCANGHA-149 Add scannerBinariesAuthHeader input by [@​henryju](https://github.com/henryju) in [#​246](https://github.com/SonarSource/sonarqube-scan-action/pull/246) - SQSCANGHA-88 Deprecate the SONARCLOUD\_URL env variable support by [@​henryju](https://github.com/henryju) in [#​249](https://github.com/SonarSource/sonarqube-scan-action/pull/249) - SQSCANGHA-84 Remove outdated wget/curl references by [@​henryju](https://github.com/henryju) in [#​248](https://github.com/SonarSource/sonarqube-scan-action/pull/248) - SQSCANGHA-135 Fix scanner binaries always re-downloaded due to incompatible 4-part version by [@​henryju](https://github.com/henryju) in [#​250](https://github.com/SonarSource/sonarqube-scan-action/pull/250) - SQSCANGHA-127 Rename downloaded file to .zip before extraction on Windows by [@​henryju](https://github.com/henryju) in [#​251](https://github.com/SonarSource/sonarqube-scan-action/pull/251) **Full Changelog**: <https://github.com/SonarSource/sonarqube-scan-action/compare/v8...v8.2.0> ### [`v8.2`](https://github.com/SonarSource/sonarqube-scan-action/compare/v8.1.0...v8.2) [Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v8.1.0...v8.2) ### [`v8.1.0`](https://github.com/SonarSource/sonarqube-scan-action/releases/tag/v8.1.0) [Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v8.1.0...v8.1.0) #### What's Changed - SQSCANGHA-146 Add proxy support for GPG keyserver access by [@​henryju](https://github.com/henryju) in [#​244](https://github.com/SonarSource/sonarqube-scan-action/pull/244) - SQSCANGHA-148 Update SonarScanner CLI to 8.1.0.6389 by [@​github-actions](https://github.com/github-actions)\[bot] in [#​232](https://github.com/SonarSource/sonarqube-scan-action/pull/232) **Full Changelog**: <https://github.com/SonarSource/sonarqube-scan-action/compare/v8...v8.1.0> ### [`v8.1`](https://github.com/SonarSource/sonarqube-scan-action/compare/v8...v8.1.0) [Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v8...v8.1.0) ### [`v8.0.0`](https://github.com/SonarSource/sonarqube-scan-action/releases/tag/v8.0.0) [Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v8...v8) #### What's Changed ##### Breaking change - SQSCANGHA-145 Set skipSignatureVerification default value to false by [@​antoine-vinot-sonarsource](https://github.com/antoine-vinot-sonarsource) in [#​241](https://github.com/SonarSource/sonarqube-scan-action/pull/241) **Full Changelog**: <https://github.com/SonarSource/sonarqube-scan-action/compare/v7...v8.0.0> ### [`v8.0`](https://github.com/SonarSource/sonarqube-scan-action/compare/v8...v8) [Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v8...v8) ### [`v8`](https://github.com/SonarSource/sonarqube-scan-action/compare/v7.2.1...v8) [Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v7.2.1...v8) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMjAuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI1Ny45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: #148 Co-authored-by: Renovate-Clanker <renovate-bot@fossy.my.id> Co-committed-by: Renovate-Clanker <renovate-bot@fossy.my.id>
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- staging
|
|
- 'feat/**'
|
|
|
|
name: SonarQube Scan
|
|
jobs:
|
|
sonarqube:
|
|
name: SonarQube Trigger
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checking out
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: 'stable'
|
|
cache: false
|
|
|
|
- name: Install dependencies
|
|
run: go mod tidy
|
|
|
|
- name: Run go vet
|
|
run: go vet ./... 2>&1 | tee vet-results.txt
|
|
|
|
- name: Run tests with coverage
|
|
run: |
|
|
go test ./... -v -p 4 -coverprofile=coverage
|
|
|
|
- name: Run GolangCI-Lint Analysis
|
|
uses: golangci/golangci-lint-action@v9
|
|
with:
|
|
skip-cache: true
|
|
version: latest
|
|
args: >
|
|
--issues-exit-code=0
|
|
--output.text.path=stdout
|
|
--output.checkstyle.path=golangci-lint-report.xml
|
|
|
|
- name: SonarQube Scan
|
|
uses: SonarSource/sonarqube-scan-action@v8.2.1
|
|
env:
|
|
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
|
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
|
with:
|
|
args: >
|
|
-Dsonar.projectKey=tunnel-please
|
|
-Dsonar.go.coverage.reportPaths=coverage
|
|
-Dsonar.test.inclusions=**/*_test.go
|
|
-Dsonar.test.exclusions=**/vendor/**
|
|
-Dsonar.exclusions=**/*_test.go,**/vendor/**,**/golangci-lint-report.xml
|
|
-Dsonar.go.govet.reportPaths=vet-results.txt
|
|
-Dsonar.go.golangci-lint.reportPaths=golangci-lint-report.xml
|
|
-Dsonar.sources=./
|
|
-Dsonar.tests=./ |