Skip to content

Fix Sonar PR analysis: download build artifacts after checkout#807

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-sonar-job-failure
Closed

Fix Sonar PR analysis: download build artifacts after checkout#807
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-sonar-job-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 30, 2026

The sonar-pr-analysis job was failing because actions/checkout cleans the workspace, wiping the compiled .class files that had just been downloaded — leaving Sonar with no binaries to analyze.

Changes

  • sonar-pr-analysis.yml: Reordered steps so actions/checkout runs before downloading build artifacts, not after. PR metadata is still read first to obtain the head_sha needed for the checkout ref.
# Before (broken order)
- Download build artifacts   # ← wiped by checkout below
- Checkout PR head           # ← cleans workspace

# After (correct order)
- Checkout PR head           # ← cleans workspace first
- Download build artifacts   # ← safe, placed after checkout

Copilot AI changed the title [WIP] Fix failing GitHub Actions job sonar Fix Sonar PR analysis: download build artifacts after checkout May 30, 2026
Copilot AI requested a review from mivek May 30, 2026 11:57
Copilot finished work on behalf of mivek May 30, 2026 11:57
@github-actions
Copy link
Copy Markdown

Please check on sonarcloud https://sonarcloud.io/project/pull_requests_list?id=io.github.mivek%3AmetarParser that the PR does not add any issue.

@mivek mivek closed this May 30, 2026
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