Skip to content

Add .pre-commit-config.yaml #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025
Merged

Add .pre-commit-config.yaml #43

merged 1 commit into from
Mar 26, 2025

Conversation

unixorn
Copy link
Owner

@unixorn unixorn commented Mar 26, 2025

Description

  • Add .pre-commit-config.yaml
  • Update mega-lint to v6
  • Demote checkov, kics, trivy and yamllint to warnings

Type of changes

Checklist

  • All new and existing tests pass.
  • Any added/updated scripts added use #!/usr/bin/env interpreter instead of potentially platform-specific direct paths (#!/bin/sh and #!/bin/bash are allowed exceptions)
  • Added/updated scripts are marked executable
  • Scripts do not have a language file extension unless they are meant to be sourced and not run standalone. No end-user should have to know if a script was written in bash, python, ruby or whatever. Not including file extensions makes it easier to rewrite the script in another language later without having to change every reference to the previous version.
  • I have confirmed that the link(s) in my PR are valid.

License Acceptance

  • This repository is Apache version 2.0 licensed (some scripts may have alternate licensing inline in their code) and by making this PR, I am contributing my changes to the repository under the terms of the Apache 2 license.

@unixorn unixorn added the github_actions Pull requests that update GitHub Actions code label Mar 26, 2025
Copy link

github-actions bot commented Mar 26, 2025

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Warnings Elapsed time
❌ ACTION actionlint 2 1 0 0.01s
✅ COPYPASTE jscpd yes no no 1.07s
⚠️ MARKDOWN markdownlint 5 14 0 0.88s
✅ MARKDOWN markdown-link-check 5 0 0 4.77s
✅ MARKDOWN markdown-table-formatter 5 0 0 0.29s
⚠️ REPOSITORY checkov yes 3 no 19.51s
✅ REPOSITORY devskim yes no no 1.18s
✅ REPOSITORY dustilock yes no no 0.01s
✅ REPOSITORY gitleaks yes no no 0.24s
✅ REPOSITORY git_diff yes no no 0.01s
✅ REPOSITORY grype yes no no 26.46s
⚠️ REPOSITORY kics yes 5 no 1.56s
✅ REPOSITORY secretlint yes no no 1.09s
✅ REPOSITORY syft yes no no 1.91s
✅ REPOSITORY trivy yes no no 9.71s
✅ REPOSITORY trivy-sbom yes no no 0.1s
✅ REPOSITORY trufflehog yes no no 4.3s
✅ SPELL lychee 8 0 0 0.82s
⚠️ YAML prettier 3 1 2 0.67s
✅ YAML v8r 3 0 0 3.23s
⚠️ YAML yamllint 3 8 0 0.43s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@unixorn unixorn force-pushed the update-github-tooling branch 2 times, most recently from bc96080 to cdbd1e1 Compare March 26, 2025 19:07
- add .pre-commit-config.yaml
- Update megalinter config
  - Demote actionlint, checkov, kics, trivy and yaml_yamllint to warnings

Signed-off-by: Joe Block <[email protected]>
@unixorn unixorn force-pushed the update-github-tooling branch from 739ee68 to c0e1926 Compare March 26, 2025 19:12
@unixorn unixorn merged commit 83f0dbe into main Mar 26, 2025
6 of 7 checks passed
@unixorn unixorn deleted the update-github-tooling branch March 26, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant