mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-26 13:03:37 +00:00
Add .github/sonar.yml
This commit is contained in:
parent
53be209722
commit
813b23f1dd
1 changed files with 24 additions and 0 deletions
24
.github/workflows/sonar.yml
vendored
Normal file
24
.github/workflows/sonar.yml
vendored
Normal 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 }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue