Skip to content

improve: run sonar for forked repo PRs#3246

Open
csviri wants to merge 1 commit intooperator-framework:mainfrom
csviri:sonar-not-running
Open

improve: run sonar for forked repo PRs#3246
csviri wants to merge 1 commit intooperator-framework:mainfrom
csviri:sonar-not-running

Conversation

@csviri
Copy link
Collaborator

@csviri csviri commented Mar 19, 2026

Signed-off-by: Attila Mészáros a_meszaros@apple.com

Copilot AI review requested due to automatic review settings March 19, 2026 16:58
@openshift-ci openshift-ci bot requested review from metacosm and xstefank March 19, 2026 16:59
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri csviri force-pushed the sonar-not-running branch from 065e81a to d258f2b Compare March 19, 2026 16:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Update the Sonar workflow so it can run for PRs coming from forked repositories.

Changes:

  • Switch workflow trigger from pull_request to pull_request_target.
  • Simplify the job if: condition to only exclude Dependabot.
  • Checkout the PR head SHA and fetch full history (fetch-depth: 0).

You can also share your feedback on Copilot code review. Take the survey.

- 'adr/**'
branches: [ main ]
pull_request:
pull_request_target:
Comment on lines +24 to +29
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants