Action not available in status checks #26668
-
|
Hey Folks - I have an action that ran successfully and I’m trying to set it up to validate a PR. When I go to the branch protection and go to setup the status check the action I created does not show there. I did not add specific yml to set a status - is that required? I read the numerous stackoverflows, About Status Checks, and About Protected Branchs and numerous other articles but none of them talk about the yml to stamp a status… Any guidance is welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 10 replies
-
|
To sortof close this out - the action is firing on pull requests so it’s working and verifying that status passes. I guess specifically setting it in the branch protection is not required once it’s setup in the actions… |
Beta Was this translation helpful? Give feedback.
-
|
The required status checks thing as of late doesn’t automatically show status checks, instead there’s a text area where you can enter a search criteria to get a choice of matching status checks to add. This isn’t the first question I’ve seen asked about this, and it feels like the docs could use a picture or two. Here’s a sample of me searching for a status check to require: And once I’ve added it, I can control whether I care about the source of the status check: Here, I’m saying that I want a passing ✅ from GitHub Actions for Check Spelling. |
Beta Was this translation helpful? Give feedback.
-
|
I'm running into an issue where nothing is showing up in the "Status Checks" list rule even when searching. The workflow file is |
Beta Was this translation helpful? Give feedback.
-
|
I wasn't finding my action because I was searching by the workflow file name. You have to search for the job name as defined in the yaml. Makes sense, but could be more intuitive. |
Beta Was this translation helpful? Give feedback.
-
|
In my case, it only recognized my actions when the action runs on This works: on:
pull_request:This does NOT work: on:
push: |
Beta Was this translation helpful? Give feedback.
-
|
Why doesn't this match against the actual action itself, rather than the individual jobs within it?? The internals of the action I would expect can change over time, where as the name of the action would likely not. I see this as something that could easily break. I could have the same job name on different actions that actually mean completely different things as well... As others have suggested it's not intuitive at all, as it's pretty ambiguous to what you should put in here without any help text to go with it. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Holy moly @onkoe thanks for clear explanation |
Beta Was this translation helpful? Give feedback.









To sortof close this out - the action is firing on pull requests so it’s working and verifying that status passes. I guess specifically setting it in the branch protection is not required once it’s setup in the actions…