Skip to content

ci: Remove secrets: inherit from changelog-preview workflow - #3946

Merged
oioki merged 1 commit into
mainfrom
alextarasov/vuln-2251-improper-authorization-vulnerability-in-getsentrysentry-dart
Aug 5, 2026
Merged

oioki merged 1 commit into
mainfrom
alextarasov/vuln-2251-improper-authorization-vulnerability-in-getsentrysentry-dart

Conversation

@oioki

@oioki oioki commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary

  • changelog-preview.yml used secrets: inherit when calling the reusable getsentry/craft/.github/workflows/changelog-preview.yml, exposing every repository secret to the called workflow.
  • The called workflow only declares inputs under workflow_call (no secrets) and only reads the auto-provisioned ${{ secrets.GITHUB_TOKEN }}, which reusable workflows already receive without inheritance.
  • Removed secrets: inherit entirely — no explicit secrets map is needed. Note: unlike most other repos with this exact pattern, this workflow is active on GitHub (not disabled), so it's fixed in place rather than deleted.

Test plan

  • Confirmed the pinned getsentry/craft/.github/workflows/changelog-preview.yml@cdb657d declares no workflow_call.secrets and only uses secrets.GITHUB_TOKEN
  • Confirmed via GitHub API that this workflow's state is active
  • Verify the Changelog Preview check still runs and posts correctly on this PR

Fixes VULN-2251

🤖 Generated with Claude Code

The reusable getsentry/craft changelog-preview.yml workflow only uses
the auto-provisioned GITHUB_TOKEN and doesn't declare any workflow_call
secrets. Inheriting all repository secrets into it violates least
privilege and isn't needed to make the workflow function.

Unlike other repos with this same pattern, this workflow is active
(not disabled) on GitHub, so it's fixed in place rather than removed.

Refs VULN-2251
Co-Authored-By: Claude Sonnet 5 <[email protected]>
@oioki
oioki requested review from buenaflor and denrase as code owners August 4, 2026 21:10
@linear-code

linear-code Bot commented Aug 4, 2026

Copy link
Copy Markdown

VULN-2251

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

⚪ None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Features

  • Add HTTP request/response header and body capture for Session Replay network breadcrumbs, gated by networkDetailAllowUrls/networkDetailDenyUrls. by lucas-zimerman in #3875

Internal Changes

  • Remove secrets: inherit from changelog-preview workflow by oioki in #3946

🤖 This preview updates automatically when you update the PR.

@oioki
oioki enabled auto-merge August 4, 2026 21:52
@oioki
oioki merged commit b01e522 into main Aug 5, 2026
31 checks passed
@oioki
oioki deleted the alextarasov/vuln-2251-improper-authorization-vulnerability-in-getsentrysentry-dart branch August 5, 2026 10:22
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