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 Permission by calling rest /repos/<owner>/<repo> and look at the permission field #210

Open
ChristopherHX opened this issue Sep 10, 2023 · 0 comments

Comments

@ChristopherHX
Copy link
Owner

ChristopherHX commented Sep 10, 2023

GH

On GitHub Actions this field is only present in authenticated requests to the repo endpoint, otherwise it is missing and I skipped looking into it

  "permissions": {
    "admin": true,
    "maintain": true,
    "push": true,
    "triage": true,
    "pull": true
  },

GT

"permissions":{"admin":false,"push":false,"pull":true}

This allows protecting the rerun button

Also then we can add the following to the webui

  • runner management
    • create / delete runner groups
  • vars management
  • secrets management
  • workflow_dispatch
  • Configure azure pipelines config locations
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