Skip to content

Commit

Permalink
ci(github-actions): fix to use pull_request trigger (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuaro committed Jan 4, 2024
1 parent 80bf1f5 commit 395db4b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
pull_request_target:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 0 * * SUN"
Expand Down Expand Up @@ -35,12 +35,6 @@ jobs:
- name: SonarCloud Scan ☁️
uses: sonarsource/sonarcloud-github-action@v2.1.1
with:
args: >
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }}
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit 395db4b

Please sign in to comment.