2022-09-14 12:55:14 +05:30
|
|
|
name: Sonarcloud workflow
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
sonarcloud:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-12-05 09:43:16 +01:00
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v2
|
2022-09-14 12:55:14 +05:30
|
|
|
with:
|
|
|
|
# Disabling shallow clone is recommended for improving relevancy of reporting
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: SonarCloud Scan
|
|
|
|
uses: sonarsource/sonarcloud-github-action@156db6fef3e168e4972abb76de0b32bbce8ec77a # pin@master
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|