Skip to content

Add team for NASA Codeflare cluster access #37

Add team for NASA Codeflare cluster access

Add team for NASA Codeflare cluster access #37

name: Check organization membership
on:
pull_request:
paths:
- "config/opendatahub-io/org.yaml"
jobs:
add-to-project:
name: Add issue to projects
runs-on: ubuntu-latest
steps:
- name: Generate github-app token
id: app-token
uses: getsentry/action-github-app-token@v2
env:
app_id: test
with:
private_key: ${{ secrets.DEVOPS_APP_PRIVATE_KEY }}
# 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: print debug info
# run: |
# echo "App id is ${{ secrets.DEVOPS_APP_ID }}"
# - name: Generate github-app token
# id: app-token
# uses: getsentry/action-github-app-token@v2
# with:
# app_id: ${{ secrets.DEVOPS_APP_ID }}
# private_key: ${{ secrets.DEVOPS_APP_PRIVATE_KEY }}
# 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