Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if Config validator is working #715

Open
decyjphr opened this issue Dec 19, 2024 · 0 comments
Open

Check if Config validator is working #715

decyjphr opened this issue Dec 19, 2024 · 0 comments

Comments

@decyjphr
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant