Replies: 1 comment
-
Once I enabled the rule turns out it was working as expected, so this looks like the Evaluation mechanism was incorrectly flagging the ruleset as failed when it would have indeed succeeded. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Hi there, I hope this is the right place to ask a question about Rulesets (but I can ask elsewhere if needed).
I recently created a new branch Ruleset, named
history-lint
, set the Enforcement status to Evaluate and targeted it to a single repository, set the branch criteria to both Default and All branches and chose the branch protection of "Require status checks to pass" where I added a check namedhistory-lint
as well.Then I created a workflow in that repository with a job id
history-lint
that invokes a composite action from another repository where the actual check is performed.I see the output of the REST api shows the check ran:
However, the Rule insight shows the rule did not pass
![image](https://cdn.statically.io/img/private-user-images.githubusercontent.com/295731/347561108-a430b76b-4611-42b0-ba7c-88a85a214ddf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyNzQ5NjgsIm5iZiI6MTcyMjI3NDY2OCwicGF0aCI6Ii8yOTU3MzEvMzQ3NTYxMTA4LWE0MzBiNzZiLTQ2MTEtNDJiMC1iYTdjLTg4YTg1YTIxNGRkZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyOVQxNzM3NDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYzkxYmU0NTI3ZjlkMTc2NGQ1ZGVjNzcwZDZhMWRlOTUyMTJiMzk4ZDEwM2U5ZmRmNmExYzc1YjlmNzkxNzk2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.FjbF2WWZ7rbTLszAtZ3XO6Cx_0ihT2AEuoiAaLfzzU8)
I also noticed the status state is pending and no statuses are present
After manually setting the status via
I now see the commit status, but the rule insight still shows it as failed.
Is there something missing in the workflow to allow the ruleset to pass? Perhaps the name of the check is expected to match something else?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions