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.

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

Original announcement

Christophe Lévis profile picture

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

Dr. Kabai Márton Tamás, Owner and Managing Director, Szitár-Net Kft.

Source: Sonar Community

Back to all news

Edited by

Dr. Márton Tamás Kabai

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 articles LinkedIn Work with us

More news

SonarSource Partner