Skip to content

Commit

Permalink
feat: pull_request_target added
Browse files Browse the repository at this point in the history
  • Loading branch information
anasnadeemws committed Apr 10, 2024
1 parent 007b12f commit b53b548
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: React Template CI
on:
pull_request:
pull_request_target:
types: [opened, synchronize, reopened, closed]
branches: [master, qa, develop]
jobs:
build-and-test:
Expand Down Expand Up @@ -41,8 +42,10 @@ jobs:

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
with:
args: -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args: >
-Dsonar.pullrequest.base=master
-Dsonar.pullrequest.key=${{github.event.number}}

0 comments on commit b53b548

Please sign in to comment.