Repository navigation
shvma - offline policy lint (#4035) #5038
shvma
started this conversation in
Vouch Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What do you want to work on?
I'd like to implement #4035,
openshell policy lint <file>. I'll use the bounded parser and policy types inopenshell-policy-schema, then run the semantic checks inopenshell-policyand the existing middleware validators, as shiju-nv suggested. The command will work without a gateway and report errors in the file. I'll move any checks it needs from the gateway into shared code so both paths use the same validationWhy this change?
I keep OpenShell policies alongside my project and want to check changes in CI before they're merged. An offline lint command would catch invalid policy files without needing gateway credentials or a running gateway. I could also run the same check locally before opening a PR.
Checklist
All reactions