Skip to content

Commit

Permalink
fix: setup taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsm-dev committed Apr 5, 2024
1 parent 1c2c53d commit d919e03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ vars:
PATH_ERROR: is not installed or correctly configured in PATH.

includes:
precommit: .github/taskfiles/pre-commit.yml
precommit: .github/taskfiles/pre-commit.yaml

tasks:
default:
Expand All @@ -24,17 +24,17 @@ tasks:
- sleep 0.1 && {{ .CLEAR }}

gitleaks:
desc: Performs secret-detection in git repo using 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=. --verbose
- gitleaks detect --source={{ .TASKFILE_DIR }} --verbose

yamllint:
desc: Run a linter for YAML files
desc: Running a linter for YAML files
preconditions:
- sh: "which yamllint"
msg: "yamllint {{.PATH_ERROR}}"
cmds:
- yamllint -c .github/config/.yamllint.yml .
- yamllint -c {{ .TASKFILE_DIR }}/.github/config/.yamllint.yaml .

0 comments on commit d919e03

Please sign in to comment.