Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/zeta-merge' into zeta-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mondokm committed Mar 6, 2024
2 parents 8fb8624 + f643e01 commit c748cb7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Sonar analysis
on:
push:
pull_request_target:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, labeled]

# Please read https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ before editing this file
permissions: read-all

concurrency:
group: sonar-${{ github.head_ref }}
Expand Down Expand Up @@ -37,11 +40,12 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
persist-credentials: false
- name: Analyze in PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != '' && github.event_name == 'pull_request_target'
if: env.SONAR_TOKEN != '' && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'Ready to test')
uses: gradle/gradle-build-action@40b6781dcdec2762ad36556682ac74e31030cfe2 # v2.5.1
with:
arguments: build jacocoTestReport sonar --info -Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=512m -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}

0 comments on commit c748cb7

Please sign in to comment.