Repository navigation
ci: Use the shared pr-classifiers action - #6760
sentry-junior[bot] wants to merge 2 commits into
Conversation
Co-Authored-By: johdax <114897+dingsdax@users.noreply.github.com>
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
Co-Authored-By: johdax <114897+dingsdax@users.noreply.github.com>
| 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 |
There was a problem hiding this comment.
are we downgrading to 3.3.0 on purpose here? or should we use 3.4.0 (or whatever is now available) instead?
There was a problem hiding this comment.
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).
Description
Replaces the copied steps in
.github/workflows/pr-classifiers.ymlwith the sharedgetsentry/github-workflows/pr-classifiersaction (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. TheCLASSIFIERS_APP_KEYandAI_GATEWAY_API_KEYsecrets 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.tomlinstead 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]