Wildcard patterns in repository rulesets not matching GitHub Actions status checks #197566
Replies: 5 comments
This comment was marked as spam.
This comment was marked as spam.
|
From what you've described, it sounds like rulesets may not support wildcard matching for required status checks in the way you're expecting. The required check usually needs to match the exact check name being reported. If the actual checks are reported as:
then a pattern like As a workaround, you may need to either:
Can anyone confirm whether wildcard matching is currently supported for required status checks in repository rulesets? |
|
Based on the behavior you described, it sounds like repository rulesets may not support wildcard matching for GitHub Actions status check contexts in the way we might expect. A few things worth checking:
If explicit check names work but wildcard patterns do not, this may indicate a current limitation or bug in ruleset pattern matching. Could you share a screenshot of the exact status checks shown in the pull request and the ruleset configuration? |
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
|
Could we re-open this discussion? I consider this a bug, as all the GH documentation that I've found simply says it is an exact string match on the It's entirely illogical that this would require me to update my status checks or else my CI/CD pipeline will break. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Other
Discussion Details
I'm trying to use wildcard patterns (e.g., preview*) in repository rulesets to match multiple GitHub Actions status checks.
However, the wildcard pattern is not matching any checks in the PR checks section
Steps to Reproduce
- Context: preview*
- Job IDs: preview_admin, preview_dev, preview_staging, preview_prod
- These jobs report status in format: {job_id} / {Job Name}
- Example: preview_admin / Infra Preview admin
- Ruleset shows preview* as "Expected — Waiting for status to be reported"
- Pattern never matches the running checks
- PR remains blocked
Expected Behavior
The wildcard pattern preview* should match all status checks with job IDs starting with "preview":
All reactions