-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsecret.go
33 lines (24 loc) · 1.03 KB
/
secret.go
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
// SPDX-License-Identifier: Apache-2.0
package constants
// Secret types.
const (
// SecretPullBuild defines the pull policy type for a secret.
SecretPullBuild = "build_start"
// SecretPullStep defines the pull policy type for a secret.
SecretPullStep = "step_start"
// SecretOrg defines the secret type for a secret scoped to a specific org.
SecretOrg = "org"
// SecretRepo defines the secret type for a secret scoped to a specific repo.
SecretRepo = "repo"
// SecretShared defines the secret type for a secret shared across the installation.
SecretShared = "shared"
// SecretMask defines the secret mask to be used in place of secret values returned to users.
SecretMask = "[secure]"
// SecretLogMask defines the secret mask to be used when distributing logs that contain secrets.
SecretLogMask = "***"
// SecretRestrictedCharacters defines the set of characters that a secret name cannot contain.
// This matches the following characters:
// Equal Sign =
// Null Character \x00
SecretRestrictedCharacters = "=\x00"
)