Skip to content

Commit cdbd1e1

Browse files
committed
GitHub action updates
- add .pre-commit-config.yaml - Update megalinter config - Demote checkov, kics, trivy and yaml_yamllint to warnings Signed-off-by: Joe Block <[email protected]>
1 parent d427d0f commit cdbd1e1

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/megalinter.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ jobs:
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5656
DISABLE_LINTERS: SPELL_CSPELL
5757
# SPELL_MISSPELL_FILTER_REGEX_EXCLUDE: '(\.yml)'
58-
58+
REPOSITORY_CHECKOV_DISABLE_ERRORS: true
59+
REPOSITORY_KICS_DISABLE_ERRORS: true
60+
REPOSITORY_TRIVY_DISABLE_ERRORS: true
61+
YAML_YAMLLINT_DISABLE_ERRORS: true
5962
# Upload Mega-Linter artifacts. They will be available on Github action page "Artifacts" section
6063
- name: Archive production artifacts
6164
if: ${{ success() }} || ${{ failure() }}

.pre-commit-config.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
# See https://pre-commit.com for more information
3+
# See https://pre-commit.com/hooks.html for more hooks
4+
ci:
5+
skip:
6+
- poetry-lock
7+
repos:
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v5.0.0
10+
hooks:
11+
- id: check-added-large-files
12+
- id: check-docstring-first
13+
- id: check-executables-have-shebangs
14+
- id: check-merge-conflict
15+
- id: check-shebang-scripts-are-executable
16+
- id: check-symlinks
17+
- id: debug-statements
18+
- id: end-of-file-fixer
19+
- id: trailing-whitespace
20+
- repo: https://github.com/astral-sh/ruff-pre-commit
21+
# Ruff version.
22+
rev: v0.11.0
23+
hooks:
24+
# Run the linter.
25+
- id: ruff
26+
args:
27+
- "--fix"
28+
# Run the formatter.
29+
- id: ruff-format
30+
- repo: https://github.com/thlorenz/doctoc
31+
rev: v2.2.0
32+
hooks:
33+
- id: doctoc
34+
- repo: https://github.com/python-poetry/poetry
35+
rev: 2.1.1
36+
hooks:
37+
- id: poetry-check
38+
- id: poetry-lock

0 commit comments

Comments
 (0)