{"id":42194642,"url":"https://github.com/scientific-python/sync-teams-action","last_synced_at":"2026-01-27T00:02:08.141Z","repository":{"id":173796700,"uuid":"651297883","full_name":"scientific-python/sync-teams-action","owner":"scientific-python","description":"Invite new members to the org","archived":false,"fork":false,"pushed_at":"2025-10-07T01:46:54.000Z","size":49,"stargazers_count":5,"open_issues_count":4,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-18T01:57:05.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scientific-python.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-09T00:20:48.000Z","updated_at":"2025-10-07T01:46:56.000Z","dependencies_parsed_at":"2025-07-17T20:54:58.450Z","dependency_job_id":"4585c8e0-1579-4813-ad5b-1ab90f289dc2","html_url":"https://github.com/scientific-python/sync-teams-action","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.1875,"last_synced_commit":"2fcf3a551e64d31e14d9608b6493c1303c1b535f"},"previous_names":["scientific-python/invite-new-members-action"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/scientific-python/sync-teams-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientific-python%2Fsync-teams-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientific-python%2Fsync-teams-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientific-python%2Fsync-teams-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientific-python%2Fsync-teams-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scientific-python","download_url":"https://codeload.github.com/scientific-python/sync-teams-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientific-python%2Fsync-teams-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28792638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-27T00:02:07.295Z","updated_at":"2026-01-27T00:02:08.134Z","avatar_url":"https://github.com/scientific-python.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Synchronize team membership / permissions\n\nThis actions reads in a `teams.yaml` file which specifies team\nmembership and permission. It then synchronizes that with GitHub,\nmaking changes as necessary.\n\nNote that it only touches teams that are specified in the\n`teams.yaml`. In other words, if a team is deleted from the YAML file,\nthe synchronization script won't do anything about it (it has no\nknowledge of history).\n\n## Using the action\n\nIn the repository that contains your `teams.yaml`, add `.github/workflows/sync-teams.yaml`:\n\n```\nname: Teams\non:\n  push:\n    branches:\n      - main\n\njobs:\n  sync_teams:\n    name: Sync\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout teams list\n        uses: actions/checkout@v3\n        with:\n          ref: main\n\n      - uses: scientific-python/sync-teams-action@main\n        with:\n          token: ${{ secrets.SYNC_TEAMS_TOKEN }}\n```\n\nYou will also need to set `SYNC_TEAMS_TOKEN` as a repository secret.\nSee the [token](#token) section below.\n\n## `teams.yaml` format\n\n```yaml\n- name: SPEC Steering Committee\n  description:\n  members:\n    - stefanv\n    ...\n  permissions:\n    - repo: specs\n      role: maintain\n\n- name: Community Managers\n  description: Scientific Python Community Managers\n  members:\n    - stefanv\n    ...\n  permissions:\n    - repo: specs\n      role: triage\n```\n\n[Valid roles](https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization#repository-roles-for-organizations) are:\n\n- `read`: Recommended for non-code contributors who want to view or discuss your project.\n- `triage`: Recommended for contributors who need to proactively manage issues, discussions, and pull requests without write access.\n- `write`: Recommended for contributors who actively push to your project.\n- `maintain`: Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.\n- `admin`: Recommended for people who need full access to the project, including sensitive and destructive actions like managing security or deleting a repository.\n\n## Action output\n\nAfter the action is run, you will see its output in the _workflow summary_.\n\n## Child teams permissions\n\nSetting repo permissions for child teams is not supported.\n\n## Token\n\nThe script requires a classic token with `repo` and `admin:org` permissions, exported as a `GH_TOKEN` environment variable.\n\nA token can be created at:\n\nhttps://github.com/settings/tokens/new\n\n## Initial creation of `teams.yaml`\n\nExisting team membership can be downloaded from GitHub using:\n\n```\nsync-teams-to-gh.py --download \u003e teams.yaml\n```\n\n## Revoking team access from repo\n\nSet `role` to None:\n\n```\n  permissions:\n    - repo: myrepo\n      role:\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientific-python%2Fsync-teams-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientific-python%2Fsync-teams-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientific-python%2Fsync-teams-action/lists"}