CI: Add statement to ensure workflow runs only on serenity

This statement ensures that the `Sonar Cloud Static Analysis` workflow
runs only for the official repository and not for the forks.
This commit is contained in:
Rodolfo Olivieri 2021-09-09 21:51:14 -03:00 committed by Brian Gianforcaro
parent 3164e22f9b
commit 706323beb1

View file

@ -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