|
|
@@ -25,10 +25,11 @@ jobs:
|
|
|
- name: Test with pytest
|
|
|
run: pytest --cov=. --cov-config=.coveragerc --cov-report xml:coverage.xml
|
|
|
- name: Track master branch
|
|
|
+ if: github.event.sender.login == github.event.repository.owner.login
|
|
|
run: git fetch --no-tags https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY +refs/heads/main:refs/remotes/origin/main
|
|
|
- name: SonarCloud scan
|
|
|
uses: sonarsource/sonarcloud-github-action@master
|
|
|
- if: github.event.repository.owner.login == 'make-all'
|
|
|
+ if: github.event.sender.login == github.event.repository.owner.login
|
|
|
env:
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|