Add .github/sonar.yml

This commit is contained in:
TS Security Bot 2024-02-29 09:32:41 +09:00 committed by Dariusz Piechota
parent 53be209722
commit 813b23f1dd
No known key found for this signature in database
GPG key ID: 92DB08FD7197015D

24
.github/workflows/sonar.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: SonarQube
on:
pull_request:
push:
branches:
- master
jobs:
SonarQube:
runs-on: [self-hosted,ts-large-x64-docker-large]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: fetching
if: contains(github.ref, 'pull')
run: |
git fetch origin ${{ github.event.pull_request.head.sha }}
git checkout ${{ github.event.pull_request.head.sha }}
- name: SonarQube Scan
uses: tradeshift/actions-sonarqube@v2
with:
ca-cert: ${{ secrets.MTLS_CACERT }}
client-cert: ${{ secrets.MTLS_CERT }}
client-key: ${{ secrets.MTLS_KEY }}
token: ${{ secrets.SONAR_TOKEN }}