Skip to content

Commit

Permalink
chore(sage-monorepo): patch Sonar GitHub workflow (#2517)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Feb 21, 2024
1 parent cc1d864 commit 2563e80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ on:
env:
HEAD_REF: ${{ github.event.pull_request.head.ref }}
HEAD_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
APPROVAL_NEEDED: ${{ github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'sonar-scan-approved') != true }}

jobs:
sonar:
runs-on: ubuntu-latest
steps:
- name: Check if the label `sonar-scan-approved` exists
if: ${{ env.APPROVAL_NEEDED }}
if: ${{ github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'sonar-scan-approved') != true }}
run: echo "Add the label 'sonar-scan-approved' to this PR to activate Sonar scan"; exit 1

- uses: actions/checkout@v3
Expand Down

0 comments on commit 2563e80

Please sign in to comment.