News
Secretless Analysis in SonarQube Cloud: Scan Without Stored Tokens in GitHub Actions and GitLab CI
SonarQube Cloud now supports secretless analysis: run scans from GitHub Actions and GitLab CI with OIDC authentication and no stored token or CI secret.
Dr. Márton Tamás Kabai 2 min read
According to Sonar, secretless analysis is now available in SonarQube Cloud: GitHub Actions and GitLab CI pipelines authenticate with their own OIDC identity, so there is no need to store a long-lived SonarQube token as a CI secret.
What is changing?
- No stored token: you no longer need to create a token, copy it into your CI secrets, rotate it, or revoke it when someone leaves the team.
- One new step in the pipeline: on GitHub, the sonarqube-auth-action; on GitLab, the sonarqube-auth-component goes directly before the analysis step. It authenticates the job and passes a short-lived token to the scanner.
- Short-lived, narrowly scoped token: the token can be used for a single project bound to the repository, and it expires after 30 minutes.
- Opt-in behavior: the feature is off by default, and an organization administrator turns it on.
Setup in brief
In SonarQube Cloud, go to Administration > Organization settings > Analysis > Analysis method and enable the “Enable secretless analysis for GitHub Actions” or “Enable secretless analysis for GitLab CI” option. The repository must be bound to a SonarQube Cloud project. For a GitHub workflow, the job needs the id-token: write permission, and no SONAR_TOKEN secret is required.
According to the documentation, the feature applies to GitHub Actions running on github.com and GitLab CI/CD running on gitlab.com, and it works in the EU, US and Australian SonarQube Cloud regions. GitHub Enterprise Server, GitHub Enterprise Cloud with data residency, GitLab Self-Managed and GitLab Dedicated are not supported. Trust is based on the bound repository: any workflow or pipeline in it, on any branch, can request a token. It is not possible to restrict this to a branch, workflow or environment.
Szitár-Net note: this means the repository’s write permissions directly determine access to analysis, so it is worth reviewing them.
What should you do? If you use SonarQube Cloud with GitHub Actions or GitLab CI, read the secretless analysis documentation and try the setup on one project before you retire the stored token.
Sources
- Secretless analysis for GitHub Actions and GitLab CI now available in SonarQube Cloud
- Secretless analysis – SonarQube Cloud documentation
Original announcement

Christophe Lévis, SonarSourcer (Sonar)
Originally published on the Sonar Community forum on 16 November 2026: Secretless analysis for GitHub Actions and GitLab CI now available in SonarQube Cloud
About the editor

Dr. Kabai Márton Tamás, Owner and Managing Director, Szitár-Net Kft.
Source: Sonar Community
Edited by
Managing Director, Szitár-Net Kft.
Managing Director of Szitár-Net Kft. The company has worked with automated source code analysis for more than 10 years and, as the official SonarSource partner in Hungary, helps banks, public institutions and large enterprises adopt SonarQube. His talks cover code quality, cybersecurity compliance and secure AI-assisted development.
More news
News
SonarQube Server LTA Releases with the Java4Shell Fix Are Now Available
SonarQube Server 2026.5.6, 2026.1.9 and 2025.4.12 LTA now include the Java4Shell fix. Azure DevOps: the @7 and @3 tasks are removed on December 7.
Read on 4 min
News
Azure DevOps extensions: @7 and @3 tasks are removed on December 7
On December 7, SonarQube Server and Cloud Azure DevOps extensions get a new major version. The @7 and @3 tasks are removed, and pipelines using them fail.
Read on 3 min
News
SonarQube Server 2025.4.12 LTA: Java Runtime Fix for Java4Shell
SonarQube Server 2025.4.12 LTA is out with the Java runtime fix for Java4Shell, so the temporary server-side JVM workaround is no longer needed.
Read on 2 min