-
Notifications
You must be signed in to change notification settings - Fork 108
49 lines (48 loc) · 1.53 KB
/
peribolos-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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