-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathTaskfile.yaml
40 lines (34 loc) · 907 Bytes
/
Taskfile.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
---
# Taskfile to be used with `task` binary.
# Usage:
# - Install with `asdf`: `asdf plugin add task`
# - List available tasks with: `task --list`
version: "3"
vars:
CLEAR: tput reset
PATH_ERROR: is not installed or correctly configured in PATH.
includes:
precommit: .github/taskfiles/pre-commit.yaml
tasks:
default:
silent: true
aliases: [commands]
cmds:
- task --list
clear:
cmds:
- sleep 0.1 && {{ .CLEAR }}
gitleaks:
desc: Detecting secrets in a git repo with the help of GitLeaks
preconditions:
- sh: "which gitleaks"
msg: "gitleaks {{ .PATH_ERROR }}"
cmds:
- gitleaks detect --source={{ .TASKFILE_DIR }} --verbose
yamllint:
desc: Running a linter for YAML files
preconditions:
- sh: "which yamllint"
msg: "yamllint {{.PATH_ERROR}}"
cmds:
- yamllint -c {{ .TASKFILE_DIR }}/.github/config/.yamllint.yaml .