Currently, rule types must specify a single context.provider value (e.g. github or gitlab). This means that rules which are completely provider-agnostic — using only git ingest and generic file checks — must be duplicated for each provider.
Example: The OSPS Baseline level-1 rules in minder-rules-and-profiles that use git ingest (e.g. osps-le-03-01, osps-gv-03-01) are identical except for context.provider. See mindersec/minder-rules-and-profiles#401 for a concrete example.
Proposed change: Allow context.provider to accept a list of provider types, e.g.:
context:
provider: [github, gitlab]
or alternatively a special value like any for truly provider-agnostic rules.
This would eliminate duplication and make it easier to add support for new providers like Forgejo in the future.
Currently, rule types must specify a single
context.providervalue (e.g.githuborgitlab). This means that rules which are completely provider-agnostic — using onlygitingest and generic file checks — must be duplicated for each provider.Example: The OSPS Baseline level-1 rules in
minder-rules-and-profilesthat usegitingest (e.g.osps-le-03-01,osps-gv-03-01) are identical except forcontext.provider. See mindersec/minder-rules-and-profiles#401 for a concrete example.Proposed change: Allow
context.providerto accept a list of provider types, e.g.:or alternatively a special value like
anyfor truly provider-agnostic rules.This would eliminate duplication and make it easier to add support for new providers like Forgejo in the future.