Skip to content

Commit

Permalink
CI: Add statement to ensure workflow runs only on serenity
Browse files Browse the repository at this point in the history
This statement ensures that the `Sonar Cloud Static Analysis` workflow
runs only for the official repository and not for the forks.
  • Loading branch information
r0x0d authored and bgianfo committed Sep 10, 2021
1 parent 3164e22 commit 706323b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sonar-cloud-static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
build:
name: Static Analysis
runs-on: ubuntu-latest
if: always() && github.repository == 'SerenityOS/serenity' && github.ref == 'refs/heads/master'
env:
# Latest scanner version is tracked on: https://sonarcloud.io/documentation/analysis/scan/sonarscanner/
SONAR_SCANNER_VERSION: 4.6.1.2450
Expand Down

0 comments on commit 706323b

Please sign in to comment.