-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (28 loc) · 962 Bytes
/
Copy pathsonar_scan.yml
File metadata and controls
34 lines (28 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: SonarQube Scan
on:
push:
branches: ['*']
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- name: Checkout
# actions/checkout@v6
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
with:
# Shallow clones should be disabled for better analysis
fetch-depth: 0
- name: Connect to Tailscale
# tailscale/github-action@v4.1.0
uses: tailscale/github-action@a392da0a182bba0e9613b6243ebd69529b1878aa
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: SonarQube Scan
# SonarSource/sonarqube-scan-action@v6
uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}