-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
Copy pathbuiltin-allow-rules.go
64 lines (63 loc) · 1.64 KB
/
builtin-allow-rules.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
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
package secret
var builtinAllowRules = []AllowRule{
{
ID: "tests",
Description: "Avoid test files and paths",
Path: MustCompile(`(\/test|-test|_test|\.test)`),
},
{
ID: "examples",
Description: "Avoid example files and paths", // e.g. https://github.com/boto/botocore/blob/develop/botocore/data/organizations/2016-11-28/examples-1.json
Path: MustCompile(`example`),
},
{
ID: "vendor",
Description: "Vendor dirs",
Path: MustCompile(`\/vendor\/`),
},
{
ID: "usr-dirs",
Description: "System dirs",
Path: MustCompile(`^usr\/(?:share|include|lib)\/`),
},
{
ID: "locale-dir",
Description: "Locales directory contains locales file",
Path: MustCompile(`\/locales?\/`),
},
{
ID: "markdown",
Description: "Markdown files",
Path: MustCompile(`\.md$`),
},
{
ID: "node.js",
Description: "Node container images",
Path: MustCompile(`^opt\/yarn-v[\d.]+\/`),
},
{
ID: "golang",
Description: "Go container images",
Path: MustCompile(`^usr\/local\/go\/`),
},
{
ID: "python",
Description: "Python container images",
Path: MustCompile(`^usr\/local\/lib\/python[\d.]+\/`),
},
{
ID: "rubygems",
Description: "Ruby container images",
Path: MustCompile(`^usr\/lib\/gems\/`),
},
{
ID: "wordpress",
Description: "Wordpress container images",
Path: MustCompile(`^usr\/src\/wordpress\/`),
},
{
ID: "anaconda-log",
Description: "Anaconda CI Logs in container images",
Path: MustCompile(`^var\/log\/anaconda\/`),
},
}