Skip to content

Commit

Permalink
chore(sage-monorepo): simplify the sonar PR workflow (#2597)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Mar 25, 2024
1 parent c62ba70 commit 388df6a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/sonar-scan-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,18 @@ on:
types: [opened, synchronize, reopened, labeled]

jobs:
authorize:
sonar:
environment:
${{ github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository &&
'sonar' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true

sonar:
github.event.pull_request.head.repo.full_name != github.repository && 'sonar' || 'none' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# We need to fetch all branches and commits so that Nx affected has a base to compare
# against.
fetch-depth: 0
persist-credentials: false
# By default, actions/checkout@v4 will checkout the main branch instead of the merge
# commit when when using pull_request_target. It is currently difficult to checkout the
# merge commit in this context. The current solution is to checkout the PR HEAD insteand
Expand Down

0 comments on commit 388df6a

Please sign in to comment.