improve: run sonar for forked repo PRs by csviri · Pull Request #3246 · operator-framework/java-operator-sdk

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

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

Reviewers

Copilot code review Copilot Copilot left review comments

@metacosm metacosm Awaiting requested review from metacosm

@xstefank xstefank Awaiting requested review from xstefank

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@csviri