Skip to content

Add team for NASA Codeflare cluster access #40

Add team for NASA Codeflare cluster access

Add team for NASA Codeflare cluster access #40

name: Check Organization Membership
on:
pull_request:
paths:
- "config/opendatahub-io/org.yaml"
jobs:
get-app-token:
runs-on: ubuntu-latest
outputs:
app_token: ${{ steps.app-token.outputs.token }}
steps:
- name: Generate github-app token
id: app-token
uses: getsentry/action-github-app-token@v2
with:
app_id: "super"
private_key: "secret"
peribolos:
runs-on: ubuntu-latest
container:
image: gcr.io/k8s-prow/peribolos
needs: get-app-token
steps:
- uses: actions/checkout@v3
- name: Check ODH organization membership
run: |
echo ${{ needs.get-app-token.outputs.app_token }} > /.github_token.txt
peribolos --github-token-path /.github_token.txt --config-path "config/opendatahub-io/org.yaml" --fix-org --fix-org-members --fix-teams --fix-team-members --fix-team-repos --fix-repos