Skip to content

GHA-355 Add statuses: write permission for release-lock feature - #1744

Open
nils-werner-sonarsource wants to merge 1 commit into
masterfrom
nw/fix-statuses-write-permission
Open

GHA-355 Add statuses: write permission for release-lock feature#1744
nils-werner-sonarsource wants to merge 1 commit into
masterfrom
nw/fix-statuses-write-permission

Conversation

@nils-werner-sonarsource

@nils-werner-sonarsource nils-werner-sonarsource commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Context

This PR is part of the release-lock gate rollout (GHA-368, epic GHA-358).

The automated-release.yml reusable workflow in release-github-actions will soon activate Phase 0 of the release-lock gate: at release start and abort, it posts a release-lock commit status on all open PRs. This requires statuses: write on the caller job's GITHUB_TOKEN.

This PR grants that permission ahead of time — while the sweep steps are still no-ops — so that activating the feature later requires no further per-repo changes and doesn't risk disrupting ongoing releases.

Change

Add statuses: write to the permissions: block of the automated-release caller job.

Impact

None on current releases. The permission is additive; the sweep steps in automated-release.yml are currently stubbed out.

@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

GHA-355

@nils-werner-sonarsource

Copy link
Copy Markdown
Contributor Author

Closing: the fix is being applied centrally in release-github-actions (vault token approach). No changes needed in caller repos.

@gitar-bot

gitar-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown
CI failed: The build is failing consistently across jobs due to a dependency resolution error involving 'sonar-orchestrator-junit5', which is missing or inaccessible in the remote repository.

Overview

Multiple CI jobs failed during the Gradle build process due to a LockOutOfDateException. The dependency locking mechanism is failing to resolve a specific version of the sonar-orchestrator-junit5 artifact.

Failures

Dependency Resolution Failure (confidence: high)

  • Type: dependency
  • Affected jobs: 84948395449, 84948395337, 84788192433
  • Related to change: no
  • Root cause: The Gradle build is restricted by lock files that point to org.sonarsource.orchestrator:sonar-orchestrator-junit5:6.3.0.4458. This specific version appears to be unavailable or cannot be found in the configured Artifactory repositories.
  • Suggested fix: Refresh the dependency lock files to include a valid, available version of the artifact. This can typically be achieved by running ./gradlew dependencies --write-locks in the project directory, then committing the updated lock files.

Summary

  • Change-related failures: 0
  • Infrastructure/flaky failures: 3 (All jobs failed due to the same dependency resolution issue).
  • Recommended action: The developer should update the dependency lock files to sync with available versions in Artifactory. Since this is a build configuration issue, it is recommended to verify if this version of the orchestrator was recently retracted or if there is a typo in the dependency declaration.
Code Review ✅ Approved

Adds statuses: write permission to the automated-release workflow to support upcoming release-lock functionality. No issues found.

Tip

Comment Gitar fix CI or enable auto-apply: gitar auto-apply:on

Options

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

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

@sonarqube-next

sonarqube-next Bot commented Jul 3, 2026

Copy link
Copy Markdown

@mary-georgiou
mary-georgiou requested review from a team and removed request for a team July 3, 2026 08:27

@felix-pauck-sonarsource felix-pauck-sonarsource left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! 👍

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