-
-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (26 loc) · 1.07 KB
/
Copy pathasc-ground-truth.yml
File metadata and controls
26 lines (26 loc) · 1.07 KB
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
name: ASC Ground Truth
on: workflow_dispatch
jobs:
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: pip install requests pyjwt cryptography
- name: ASC Diagnostics
env:
APPSTORE_KEY_ID: ${{ secrets.APPSTORE_KEY_ID }}
APPSTORE_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
APPSTORE_PRIVATE_KEY: ${{ secrets.APPSTORE_PRIVATE_KEY }}
run: |
python3 -c "import scripts.asc.asc_add_tester as asc; t=asc.build_token(); \
print('\n--- TEAM MEMBERS ---'); \
users=asc.api(t, 'GET', '/users'); \
[print(f\"Member: {u['attributes']['username']} | Roles: {u['attributes']['roles']}\") for u in users.get('data', [])]; \
print('\n--- PENDING INVITES ---'); \
invites=asc.api(t, 'GET', '/userInvitations'); \
[print(f\"Pending: {i['attributes']['email']}\") for i in invites.get('data', [])]"