Skip to content

ci: Use the shared pr-classifiers action - #6760

Open
sentry-junior[bot] wants to merge 2 commits into
mainfrom
ci/bump-pr-classifiers
Open

sentry-junior[bot] wants to merge 2 commits into
mainfrom
ci/bump-pr-classifiers

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Replaces the copied steps in .github/workflows/pr-classifiers.yml with the shared getsentry/github-workflows/pr-classifiers action (getsentry/github-workflows#188). The action does the same four steps: get a read-only app token for the internal getsentry/classifiers repository, check it out at a pinned commit, run the classifier, upload the result. The classifiers commit moves into the action, so later bumps happen there instead of in each SDK repository. The trigger, permissions and concurrency group stay here, unchanged. The CLASSIFIERS_APP_KEY and AI_GATEWAY_API_KEY secrets are now passed as inputs to that action, pinned to a full commit SHA of getsentry/github-workflows. It hands them to the same steps that used them before: the app token step and the classify step. The summary comment stays on.

This also moves to the classifiers version that reads the fact sheet from this repository's .github/classifiers.toml instead of from getsentry/classifiers.

Merge order: merge #6754 (the fact sheet at .github/classifiers.toml) first. The classifier reads the fact sheet from the pull request's base branch and skips repositories without one.

The workflow runs on pull_request_target, so it does not run with this change on this PR and takes effect after merge. To undo it, revert this PR.

#skip-changelog

via @dingsdax.

--

View Session [Sentry]

Co-Authored-By: johdax <114897+dingsdax@users.noreply.github.com>
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit 19e0dbf.

The model rated this change low. It was raised to medium because:

  • R6: build or release configuration changed: .github/workflows/pr-classifiers.yml
  • R7: the model was not confident enough that the change is low

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.65.1 (1) release

⚙️ sentry-android Build Distribution Settings

Co-Authored-By: johdax <114897+dingsdax@users.noreply.github.com>
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 25, 2026
@sentry-junior sentry-junior Bot changed the title ci: Bump the PR classifiers to read the in-repo fact sheet ci: Use the shared pr-classifiers action Nov 25, 2026
@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 25, 2026 12:07
@sentry-junior
sentry-junior Bot requested review from a team and adinauer as code owners November 25, 2026 12:07
@sentry-junior
sentry-junior Bot requested review from dingsdax, markushi and romtsn and removed request for a team November 25, 2026 12:07
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 25, 2026
id: app
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
# This job must never check out or run code from the pull request.
- uses: getsentry/github-workflows/pr-classifiers@edc87d6f133ac6204e22dee5123167a5eff3ed79

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we downgrading to 3.3.0 on purpose here? or should we use 3.4.0 (or whatever is now available) instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the downgrade isn't on purpose. This workflow no longer pins create-github-app-token itself. The token step now runs inside the shared action, and pr-classifiers/action.yml at getsentry/github-workflows@edc87d6 still pins it to v3.3.0. v3.4.0 is the latest release.

This PR can't fix that. The bump has to land in pr-classifiers/action.yml in getsentry/github-workflows, and then this pin can move to that commit. I'll leave this thread open so a maintainer can decide whether to wait for that bump or merge as is (v3.3.0 works the same for this job).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants