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

Default to least permissions in GitHub workflows in all orgs #92

Open
Tracked by #89
consideRatio opened this issue Mar 20, 2025 · 0 comments
Open
Tracked by #89

Default to least permissions in GitHub workflows in all orgs #92

consideRatio opened this issue Mar 20, 2025 · 0 comments

Comments

@consideRatio
Copy link
Member

consideRatio commented Mar 20, 2025

Can be checked like this using gh CLI for a specific organization:

gh api \     
  --jq '.default_workflow_permissions' \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  /orgs/<ORG>/actions/permissions/workflow

read
  • Configured on org level via https://github.com/organizations/<ORGANIZATION NAME>/settings/actions
  • Could it be configured as a Jupyter Enterprise policy for all orgs?
    I'm not sure, but let us only do that when each non-archived org has transitioned already.
List of Jupyter orgs
non_archived_jupyter_orgs = [
    "binder-examples",
    "binderhub-ci-repos", # read
    "ipython",
    "jupyter",
    "jupyter-book",
    "jupyter-governance",
    "jupyter-incubator",
    "jupyter-server",
    "jupyter-standards",
    "jupyter-widgets",
    "jupyter-xeus",
    "jupytercon",
    "jupyterhub", # read
    "jupyterlab",
    "voila-dashboards",
    "voila-gallery",
]
archived_jupyter_orgs = [
    "jupyter-attic",
    "jupyter-resources",
    "jupyter-standard",
    "pickleshare",
]
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