Skip to content

[release-2.1] chore(ci): run pr-semantic on pull_request - #273

Open
gashcrumb wants to merge 1 commit into
release-2.1from
chore/pr-semantic-pull-request-2.1
Open

gashcrumb wants to merge 1 commit into
release-2.1from
chore/pr-semantic-pull-request-2.1

Conversation

@gashcrumb

Copy link
Copy Markdown
Member

GitHub blocks pull_request_target by default in public repositories from 2 December 2026, which stops this workflow from running at all.

This change moves the workflow to pull_request. It only reads the pull request title and never checks out or runs pull request code, so the safer event is enough here. The sticky comment needs a write token. Fork and Dependabot pull requests do not get one, so those two steps are skipped for them. The title check itself still runs and reports for every pull request.

One difference for fork pull requests from a first-time contributor: GitHub holds the run until a maintainer approves it.

Cherry-pick of rhdh-cli#271 to release-2.1.

Fixes RHIDP-19393

GitHub blocks pull_request_target by default in public repositories from
2026-12-02, which would stop this workflow entirely. The workflow only reads
the pull request title and never checks out or runs pull request code, so
pull_request is safe here.

The sticky comment needs a write token that fork and Dependabot pull requests
do not get, so those steps are now skipped for them. The title check still
runs and reports for every pull request.

Refs: RHIDP-19393

Assisted-By: DeepSeek V4.1 Flash

rh-pre-commit.version: 2.4.0
rh-pre-commit.check-secrets: ENABLED
@sonarqubecloud

Copy link
Copy Markdown

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