Commit a42ac9b
committed
ci: Use DEPENDABOT_AUTH for dependabot-triggered Sonar scans
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.1 parent 93c0a01 commit a42ac9b
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments