Skip to content

CLI-1725 Use fixed build-number action for workflow PRs - #1412

Merged
nquinquenel merged 1 commit into
masterfrom
fix/nquinquenel/CLI-1725-updateBuildNumberAction
Nov 27, 2026
Merged

nquinquenel merged 1 commit into
masterfrom
fix/nquinquenel/CLI-1725-updateBuildNumberAction

Conversation

@sonar-fabrik

@sonar-fabrik sonar-fabrik Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

CLI-1725 https://sonarsource.atlassian.net/browse/CLI-1725

Human description

PRs that change workflows can fail to claim a build number. Update the build-number action to 2.6.0, which creates its refs against an existing default-branch commit. Keep the current permissions and build-number outputs.

Agent description

Approach: use the exact 2.6.0 commit specified in the ticket. The upstream tag resolves to this SHA. Upstream source inspection confirms the default-branch ref target and existing-run number reuse. Stale-lock recovery remains separate under BUILD-14572; a combined release was not selected. Reviewers can request a separately verified release if needed.

Acceptance coverage: this PR provides the workflow-changing PR case. Number claim and downstream build checks will be inspected in current-head CI. A separate code-only PR, rerun number reuse, and default-branch publication have not been exercised. Default-branch publication is outside this run's authority.

Validation: parsed the workflow with the installed js-yaml dependency and compared its full structure against master. Only the intended action pin differs; permissions, outputs and all other settings are identical. Whitespace and scoped secrets checks passed. Full application checks remain with current-head CI.

Vortex: project SonarSource_sonarqube-cli is bound, with context and agentic analysis enabled. Vortex supplied five GitHub Actions rules, including full commit pinning; the change keeps that protection. DEEP agentic analysis found no issues. The dependency scan reported 15 risks in unchanged dependencies, including three HIGH risks in the existing vulnerable lodash E2E fixture. No manifests or dependencies changed.

Validation gaps: live code-only PR, rerun reuse and default-branch publication evidence remains unavailable. The isolated reviewer has no repository-supplied host preparation plan and could not run its parser check with offline dependencies; the host structural comparison passed. CI validation is pending, not passed.

Repository guidance warning: root AGENTS.md exists, but no ADR directory was found. A separate template proposal was identified; no seeding work is included. Decision records changed: none. Attachments used: none.

Independent review: clean, round 2, gpt-6.1-sol, zero blocking findings; three validation gaps remain.
Token usage (processed tokens, not billing): gpt-6.1-sol: 3690165.

This PR was opened as a draft by autonomous Fabrik. It may become ready only after its mechanical gates pass. Human approval and merge remain required.


🤖 Co-authored by Fabrik and @nquinquenel

Update only get-build-number to the verified 2.6.0 commit. Preserve the
Prepare Build permissions and build number outputs.

Co-Authored-By: Nicolas QUINQUENEL <14952624+nquinquenel@users.noreply.github.com>
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sonarqube-cli canceled.

Name Link
🔨 Latest commit 3038913
🔍 Latest deploy log https://app.netlify.com/projects/sonarqube-cli/deploys/6b094052a4c206bb8a8f3b19

@sonar-fabrik
sonar-fabrik Bot requested a review from nquinquenel November 27, 2026 08:33
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

CLI-1725

@gitar-bot

gitar-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Pinning get-build-number to 2.6.0 changes build-number allocation for workflow PRs, which could affect claimed numbers and package versions.

Updates the build-number GitHub Action pin to 2.6.0 so workflow PRs can claim a build number against an existing default-branch commit, keeping permissions and outputs unchanged. No issues found.

Verification Rules 4/4 met PRs 1 inspected

Functional validation No results

Rules 4 passed 1 not applicable

✅ Approved GitHub Actions runners
✅ Internal artifact registries
✅ Release secrets usage
✅ Repository license compliance

Broader impact PRs 1 inspected
Cross-PR 1 PR inspected 0 open impacts

PR 386: BUILD-14572 Recover abandoned build-number locks safely Inspected

Auto-approval Withheld

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqubecloud

Copy link
Copy Markdown

@sonar-fabrik

sonar-fabrik Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Current-head CI passed, including publication and promotion of version 1.14.0.18432. Prepare Build claimed number 18432 on this workflow-changing PR.

The publication log reports a Sentry bundler release-finalization HTTP 404. The subsequent explicit sourcemap upload to version 1.14.0.18432 succeeded. Artifact publication and promotion also succeeded. Sentry configuration is unchanged by this PR; this operational warning remains for maintainers to inspect.

Evidence: https://github.com/SonarSource/sonarqube-cli/actions/runs/45966582995/job/140400850584

Separate code-only PR, rerun reuse, and default-branch publication checks remain unverified. The PR description is preserved.

Generated by Fabrik

@nquinquenel
nquinquenel marked this pull request as ready for review November 27, 2026 08:59
@nquinquenel
nquinquenel requested a review from a team as a code owner November 27, 2026 08:59
@nquinquenel
nquinquenel merged commit 27164e6 into master Nov 27, 2026
33 checks passed
@nquinquenel
nquinquenel deleted the fix/nquinquenel/CLI-1725-updateBuildNumberAction branch November 27, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant