Skip to content

fix: forward protected Sonar secrets to shared workflow - #27

Merged
andregoepel merged 1 commit into
mainfrom
codex/core-sonar-secret-forwarding
Oct 23, 2026
Merged

andregoepel merged 1 commit into
mainfrom
codex/core-sonar-secret-forwarding

Conversation

@andregoepel

@andregoepel andregoepel commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Problem and change

Core's first approved central Sonar run stopped before scanning with Both Sonar credentials are required. The reusable workflow received empty values because its caller did not forward secrets, despite the sonar-main environment containing both tokens.

Add secrets: inherit to the existing caller so the environment can supply its credentials to the immutable shared workflow. This is the explicitly approved one-line exception. It also makes the existing NUGET_USER repository secret available to that workflow, although the pinned workflow does not reference it and has no OIDC or publishing permissions. Environment protections and all other files remain unchanged.

Refs #24. Failed run. GitHub environment-secret forwarding documentation.

Validation

  • Actionlint 1.7.12, CSharpier formatting, and git diff --check passed.
  • All 6 local tests passed; no known vulnerable direct or transitive NuGet packages.
  • Hosted CI attempt 1 passed on d110a57; all required steps passed and publishing skipped.
  • Diff is one inserted line in .github/workflows/sonar-main.yml.

Central analysis and baseline review still require the reviewed merge and a fresh successful main CI run. No baseline is selected and no publishing activation is included. Leave this PR open for operator review.

@andregoepel
andregoepel merged commit 6f053a8 into main Oct 23, 2026
3 checks passed
@andregoepel
andregoepel deleted the codex/core-sonar-secret-forwarding branch October 23, 2026 03:20
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