Skip to content

Commit

Permalink
fix job
Browse files Browse the repository at this point in the history
  • Loading branch information
alkoleft committed May 22, 2024
1 parent e039bff commit 6081654
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/sq-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Анализ в SonarQube (pull-request)

on: [pull_request_target]
on: [pull_request]

jobs:
SonarScanner:
Expand All @@ -9,13 +9,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
# https://github.com/android-password-store/Android-Password-Store/pull/1247
ref: refs/pull/${{ github.event.pull_request.number }}/merge

# https://docs.sonarqube.org/latest/analysis/pull-request/
- name: Анализ в SonarQube (pull-request)
if: github.event_name == 'pull_request'
uses: alkoleft/sonar-quality-gate@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -24,5 +22,5 @@ jobs:
SONAR_URL: https://sonar.openbsl.ru
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_REPOSITORY: bia-technologies/yaxunit
CI_MERGE_REQUEST_IID: ${{ github.event.pull_request.number }}
CI_MERGE_REQUEST_IID: ${{ github.event.number }}
DEBUG: ${{ runner.debug }}

0 comments on commit 6081654

Please sign in to comment.