Skip to content

Commit

Permalink
chore(sage-monorepo): fix Sonar workflow job names (#2518)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Feb 21, 2024
1 parent 2563e80 commit b14c4f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
types: [opened, synchronize, reopened, labeled]

env:
HEAD_REF: ${{ github.event.pull_request.head.ref }}
HEAD_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
HEAD_REF: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.ref || github.ref_name }}
HEAD_REPOSITORY: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}

jobs:
sonar:
Expand Down Expand Up @@ -42,4 +42,4 @@ jobs:
- name: Scan the affected projects with Sonar
run: |
devcontainer exec --workspace-folder ../sage-monorepo bash -c ". ./dev-env.sh \
&& nx affected --target=sonar"
&& nx run-many --target=sonar"

0 comments on commit b14c4f5

Please sign in to comment.