Skip to content

ci: Use DEPENDABOT_AUTH for dependabot-triggered Sonar scans - #119

Merged
thced merged 1 commit into
masterfrom
ci/dependabot-sonar-auth
Aug 11, 2026
Merged

ci: Use DEPENDABOT_AUTH for dependabot-triggered Sonar scans#119
thced merged 1 commit into
masterfrom
ci/dependabot-sonar-auth

Conversation

@thced

@thced thced commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Dependabot-triggered runs read the Dependabot secret store rather than the Actions one, so secrets.SECRET_AUTH resolves to an empty string. The sonar-scanner action then fails to authenticate with Secret Manager and cannot load the github-token secret, surfacing as the misleading Missing env var: GITHUB_TOKEN.

Select DEPENDABOT_AUTH only when dependabot is the actor, leaving every human-authored run on SECRET_AUTH unchanged.

Evidence this is actor-scoped rather than code-scoped: on a single dependabot commit, commit-msg, pre-commit and the ASVS gate all pass and only CI fails -- it is the one workflow that reads the secret. Rebasing or recreating those PRs cannot help, since both preserve dependabot as the triggering actor.

Dependabot-triggered runs read the Dependabot secret store rather than
the Actions one, so `secrets.SECRET_AUTH` resolves to an empty string.
The sonar-scanner action then fails to authenticate with Secret Manager
and cannot load the github-token secret, surfacing as the misleading
`Missing env var: GITHUB_TOKEN`.

Select DEPENDABOT_AUTH only when dependabot is the actor, leaving every
human-authored run on SECRET_AUTH unchanged.

Evidence this is actor-scoped rather than code-scoped: on a single
dependabot commit, commit-msg, pre-commit and the ASVS gate all pass and
only CI fails -- it is the one workflow that reads the secret. Rebasing
or recreating those PRs cannot help, since both preserve dependabot as
the triggering actor.
@sonarqubecloud

Copy link
Copy Markdown

@thced
thced merged commit a9fa8f2 into master Aug 11, 2026
5 checks passed
@thced
thced deleted the ci/dependabot-sonar-auth branch August 11, 2026 06:39
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.

1 participant