Skip to content

Allow context.provider to accept a list of providers for provider-agnostic rules #6481

Description

@intelligent-ears

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions