Repository navigation
Expand file tree
/
Copy pathplugin.yaml
More file actions
88 lines (83 loc) · 2.49 KB
/
Copy pathplugin.yaml
File metadata and controls
88 lines (83 loc) · 2.49 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Standard trunk configuration for 3ware projects
# https://docs.trunk.io/code-quality/overview/getting-started/configuration/plugins/external-repositories
version: 0.1
required_trunk_version: ">=1.25.0"
# Applicable linters and actions will run with these runtime versions
runtimes:
enabled:
- node@22.18.0
- python@3.14.4
# By sourcing this plugin, repos will enable these linters
lint:
files:
- name: github-action
filenames: [action.yaml, action.yml]
disabled:
# gh actions-lock handles pinning verification
- pinact
enabled:
- actionlint@1.17.0
- checkov@3.3.21
- cspell@10.4.0
- git-diff-check
- jsonvet@3.2.0
- markdownlint@0.49.1
- pre-commit-hooks@6.0.0:
commands:
- check-added-large-files
- check-merge-conflict
- check-yaml
- detect-private-key
- end-of-file-fixer
- trailing-whitespace
- prettier@3.9.9
- renovate@44.258.2
- shellcheck@0.11.0
- shfmt@3.14.1
- trufflehog@3.97.9
- yamllint@1.38.0
- zizmor@1.30.0
# By sourcing this plugin, repos will use these custom definitions and configs
definitions:
- name: zizmor
files: [github-action, github-workflow]
environment:
# Token enables online mode for zizmor
# Avoid GH_TOKEN/GITHUB_TOKEN locally as gh uses them for git auth
- name: ZIZMOR_GITHUB_TOKEN
value: ${env.ZIZMOR_GITHUB_TOKEN}
optional: true
commands:
# pedantic persona enables the stale-action-refs audit rule
- name: lint
run: zizmor --config=zizmor.yaml --format=sarif --persona=pedantic ${target}
exported_configs:
- configs:
- configs/.markdownlint.yaml
- configs/.shellcheckrc
- configs/.yamllint.yaml
- configs/zizmor.yaml
ignore:
# CHANGELOG.md files generated by release-please
- linters: [prettier, markdownlint]
paths:
- CHANGELOG.md
# By sourcing this plugin, repos will enable these actions
actions:
disabled:
- trunk-announce
enabled:
- actions-lock-verify
- trunk-check-pre-push
- trunk-fmt-pre-commit
- trunk-upgrade-available
definitions:
- id: actions-lock-verify
description: Pre-commit hook that verifies the GitHub Actions lockfile is up to date
triggers:
- git_hooks: [pre-commit]
run: ${plugin}/scripts/actions-lock-verify.sh
# By sourcing this plugin, repos will enable these tools
tools:
enabled:
- gh@2.103.3