-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
65 lines (65 loc) · 1.97 KB
/
Taskfile.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
---
version: "3"
tasks:
tool-versions:upgrade:repo:
summary: Upgrade version in .tool-versions
desc: Upgrade version in .tool-versions
internal: true
silent: true
cmds:
- |
version=$(gh api -H "Accept: application/vnd.github+json" repos/{{ .OWNER }}/{{ .NAME }}/releases/latest | jq .tag_name -r)
version=${version//v}
sed -i "s/{{ .NAME }}.*/{{ .NAME }} $version/g" .tool-versions
tool-versions:upgrade:
summary: Upgrade versions in .tool-versions
desc: Upgrade versions in .tool-versions
cmds:
- task: tool-versions:upgrade:trivy
- task: tool-versions:upgrade:task
tool-versions:upgrade:trivy:
summary: Upgrade version of trivy in .tool-versions
desc: Upgrade version of trivy .tool-versions
cmds:
- task: tool-versions:upgrade:repo
vars:
OWNER: aquasecurity
NAME: trivy
tool-versions:upgrade:task:
summary: Upgrade version of task in .tool-versions
desc: Upgrade version of task .tool-versions
cmds:
- task: tool-versions:upgrade:repo
vars:
OWNER: go-task
NAME: task
semgrep:auto:
summary: Run semgrep static analysis with auto config
desc: Run semgrep static analysis with auto config
silent: true
cmds:
- semgrep --config=auto .
semgrep:security-audit:
summary: Run semgrep static analysis with security-audit config
desc: Run semgrep static analysis with security-audit config
silent: true
cmds:
- semgrep --config=p/security-audit .
semgrep:secrets:
summary: Run semgrep static analysis with secrets config
desc: Run semgrep static analysis with secrets config
silent: true
cmds:
- semgrep --config=p/secrets .
trivy:fs:
summary: Run trivy fs check
desc: Run trivy fs check
silent: true
cmds:
- trivy fs .
trivy:config:
summary: Run trivy config check
desc: Run trivy config check
silent: true
cmds:
- trivy config .