Skip to content

ci: Replace secrets: inherit with explicit CODECOV_TOKEN pass - #3047

Merged
oioki merged 1 commit into
masterfrom
alextarasov/vuln-2296-improper-authorization-vulnerability-in-getsentrysentry-ruby
Aug 5, 2026
Merged

oioki merged 1 commit into
masterfrom
alextarasov/vuln-2296-improper-authorization-vulnerability-in-getsentrysentry-ruby

Conversation

@oioki

@oioki oioki commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • The test job in tests.yml used secrets: inherit when calling gem_test.yml, exposing every repository secret to that workflow.
  • gem_test.yml only reads secrets.CODECOV_TOKEN (to upload coverage) but never declared it under workflow_call.secrets.
  • Declared it explicitly in gem_test.yml and updated tests.yml to pass only that secret by name.

Test plan

  • Confirmed gem_test.yml only references secrets.CODECOV_TOKEN
  • Validated workflow YAML parses correctly
  • Verify the test job still uploads coverage correctly on this PR

Fixes VULN-2296

🤖 Generated with Claude Code

The test job inherited all repository secrets to call gem_test.yml,
which only reads secrets.CODECOV_TOKEN but never declared it under
workflow_call.secrets. Declare it explicitly and pass only that
secret by name instead of exposing every repository secret to the
called workflow.

Refs VULN-2296
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Aug 5, 2026

Copy link
Copy Markdown

VULN-2296

@oioki
oioki requested a review from dingsdax August 5, 2026 13:55
@oioki
oioki enabled auto-merge (squash) August 5, 2026 13:56
@dingsdax
dingsdax requested review from sl0thentr0py and removed request for dingsdax August 5, 2026 14:01
@oioki
oioki merged commit f5a0392 into master Aug 5, 2026
158 checks passed
@oioki
oioki deleted the alextarasov/vuln-2296-improper-authorization-vulnerability-in-getsentrysentry-ruby branch August 5, 2026 14:01
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.

2 participants