siderolabs / conform

Policy enforcement for your pipelines.
Mozilla Public License 2.0
432 stars 45 forks source link

Add possibility to skip scope keyword validation #202

Closed maulik13 closed 2 years ago

maulik13 commented 3 years ago

We are setting up conform on multiple projects and we would like to have a possibility to use any scope and skip the scope keyword validation. Since we are using these on multiple projects with each having different requirements it has added a lot of work to finalize the scope list for all these projects (we are starting with at least 40 repos).

Would it be possible to add this? I am willing to do a PR if you guys are open.

andrewrynhard commented 3 years ago

This sounds like a reasonable request. Not sure what that means though. Maybe if the list of valid values is just * that could mean anything is valid?

maulik13 commented 3 years ago

That is a good idea. Then the wildcard character * can also be used to match prefix of scopes. e.g. (module-xyz matched by module-* in the configuration).

andrewrynhard commented 3 years ago

That is a good idea. Then the wildcard character * can also be used to match prefix of scopes. e.g. (module-xyz matched by module-* in the configuration).

Yep, that sounds good to me.

smira commented 2 years ago

Scope already support regexp expressions, so e.g. .* allows any scope (scopes: [".*])