forked from PRODYNA/delete-from-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
43 lines (42 loc) · 1.57 KB
/
action.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
name: 'Delete from enterprise'
description: 'GitHub Action removes everybody from the whole enterprise if he is not member of an Azure group anymore'
author: [email protected]
inputs:
github-token:
description: 'The GitHub Token to use for authentication, it needs permissions to read member in source-org and invite them to the target-org'
required: true
github-enterprise:
description: 'The GitHub Enterprise to query for members'
required: true
dry-run:
description: 'If true, the action will only print the list of users that would be invited'
required: false
default: 'false'
verbose:
description: 'Verbosity, 0=error, 1=warn, 2=info, 3=debug'
required: false
default: '2'
azure-group:
description: 'The Azure group to query for members'
required: true
azure-tenant-id:
description: 'The Azure Tenant ID to use for authentication'
required: true
azure-client-id:
description: 'The Azure Client ID to use for authentication'
required: true
azure-client-secret:
description: 'The Azure Client Secret to use for authentication'
required: true
runs:
using: 'docker'
image: 'docker://ghcr.io/prodyna/sync-enterprise:v0.9.2'
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
GITHUB_ENTERPRISE: ${{ inputs.github-enterprise }}
DRY_RUN: ${{ inputs.dry-run }}
VERBOSE: ${{ inputs.verbose }}
AZURE_GROUP: ${{ inputs.azure-group }}
AZURE_TENANT_ID: ${{ inputs.azure-tenant-id }}
AZURE_CLIENT_ID: ${{ inputs.azure-client-id }}
AZURE_CLIENT_SECRET: ${{ inputs.azure-client-secret }}