Skip to content

Commit

Permalink
updated sonarcloud.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jun 2, 2023
1 parent 77cecd7 commit 643dc02
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/sonarcloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
#
# https://github.com/HariSekhon/Template-repo
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
#
# https://www.linkedin.com/in/HariSekhon
#
Expand All @@ -19,6 +17,7 @@

---
name: SonarCloud

on:
push:
branches:
Expand All @@ -38,20 +37,12 @@ permissions:
contents: read
pull-requests: read

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
sonarcloud:
SonarCloud:
# github.event.repository context not available in scheduled workflows
#if: github.event.repository.fork == false
if: github.repository_owner == 'HariSekhon'
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
uses: HariSekhon/GitHub-Actions/.github/workflows/sonarcloud.yaml@master
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 643dc02

Please sign in to comment.