Invite missing members #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Invite missing members | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0,12 * * *" | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| invite-missing: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # - name: Set up Tailscale | |
| # uses: tailscale/github-action@v4 | |
| # with: | |
| # authkey: ${{ secrets.TS_AUTHKEY }} | |
| # tags: tag:ci | |
| # args: --accept-dns=true | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install dependencies | |
| run: uv sync --locked | |
| - name: Invite missing GitHub team members | |
| env: | |
| KC_HOST: ${{ secrets.KC_ENDPOINT }} | |
| KEYCLOAK_CLIENT_SECRET: ${{ secrets.KEYCLOAK_CLIENT_SECRET }} | |
| MEMBER_SYNC_GITHUB_TOKEN: ${{ secrets.MEMBER_SYNC_GITHUB_TOKEN }} | |
| run: | | |
| uv run member-sync \ | |
| --keycloak-base-url ${KC_HOST} \ | |
| --realm fossforall \ | |
| --client-id github-org-agent \ | |
| --client-secret env:KEYCLOAK_CLIENT_SECRET \ | |
| --linked-provider github \ | |
| --group /members \ | |
| --github-org foss-for-all \ | |
| --github-team-slug full-members \ | |
| --github-token env:MEMBER_SYNC_GITHUB_TOKEN \ | |
| --invite-missing \ | |
| --no-dry-run |