-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
69 lines (66 loc) · 2.06 KB
/
action.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: 'Sync Secrets Action'
description: 'Sync Repository, Dependabot and Codespaces secrets + variables between GitHub repositories'
author: 'cbrgm'
inputs:
github-token:
description: 'The GitHub token to use.'
required: true
target:
description: 'The repository to sync secrets and variables to. Either this or query must be set, not both.'
required: false
query:
description: 'GitHub search query to find repositories for batch processing. Either this or target must be set, not both.'
required: false
secrets:
description: 'Secrets to sync.'
required: false
variables:
description: 'Variables to sync.'
required: false
rate-limit:
description: 'Enables rate limit checking.'
default: "false"
required: false
max-retries:
description: 'Maximum number of retries for operations. Must not be smaller than zero.'
default: "3"
required: false
dry-run:
description: 'Dry run. If true, no changes will be made.'
default: "false"
required: false
prune:
description: 'Prunes all existing secrets and variables not in the subset of those defined in this action.'
default: "false"
required: false
environment:
description: 'The GitHub environment to sync variables or secrets to. Use when targeting environment-specific secrets or variables.'
required: false
type:
description: 'Type of the secrets to manage: actions, dependabot, or codespaces.'
default: "actions"
required: false
runs:
using: 'docker'
image: 'docker://ghcr.io/cbrgm/sync-secrets-action:v1'
args:
- --github-token
- ${{ inputs.github-token }}
- --target
- ${{ inputs.target }}
- --query
- ${{ inputs.query }}
- --environment
- ${{ inputs.environment }}
- --rate-limit=${{ inputs.rate-limit }}
- --max-retries=${{ inputs.max-retries }}
- --dry-run=${{ inputs.dry-run }}
- --prune=${{ inputs.prune }}
- --type=${{ inputs.type }}
- --secrets
- ${{ inputs.secrets }}
- --variables
- ${{ inputs.variables }}
branding:
icon: 'lock'
color: 'green'