-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
43 lines (37 loc) · 1.04 KB
/
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
41
42
43
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
# 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:
g: .github/taskfiles/github.yaml
precommit: .github/taskfiles/pre-commit.yaml
tf: .github/taskfiles/terraform.yaml
tasks:
default:
silent: true
aliases: [commands]
cmds:
- task --list
clear:
cmds:
- sleep 0.1 && {{.CLEAR}}
gitleaks:
desc: Use the gitleaks tool to find secrets in the Git repository
preconditions:
- sh: which gitleaks
msg: gitleaks {{.PATH_ERROR}}
cmds:
- gitleaks detect --source={{.ROOT_DIR}} --verbose
yamllint:
desc: Run the yamllint linter on all YAML files
preconditions:
- sh: which yamllint
msg: yamllint {{.PATH_ERROR}}
cmds:
- yamllint --config-file={{.ROOT_DIR}}/.github/config/.yamllint.yaml .