Skip to content

Commit cda5e7f

Browse files
authored
Create scan.yml
1 parent 71a8c1a commit cda5e7f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/scan.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
# Trigger analysis when pushing in master or pull requests, and when creating
3+
# a pull request.
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
name: Main Workflow
10+
jobs:
11+
sonarcloud:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
# Disabling shallow clone is recommended for improving relevancy of reporting
17+
fetch-depth: 0
18+
- name: SonarCloud Scan
19+
uses: sonarsource/sonarcloud-github-action@master # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/sonarcloud-scan
20+
env:
21+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)