Skip to content

Check if Config validator is working #715

@decyjphr

Description

@decyjphr

In #604 @paddyroddy commented that they are not able to block adding users to admin role as repository collaborators using the Config Validator in the deployment-settings.yml. This needs to be checked.

To block users getting admin role as collaborators, the following would be set

configvalidators:
  - plugin: collaborators
    error: |
      `Admin cannot be assigned to collaborators`
    script: |
      console.log(`baseConfig ${JSON.stringify(baseconfig)}`)
      return baseconfig.permission != 'admin'

Check if this is still working

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