From 25c81679de2618ce5b751372f5ab40ec2cdb71f3 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sun, 1 Dec 2024 08:36:30 +0900 Subject: [PATCH] Bump actionlint from 1.7.3 to 1.7.4 (#19) ## Pull request checklist Please check if your PR fulfills the following requirements: - [ ] I have read the [CONTRIBUTING](https://github.com/fabasoad/setup-ciao-action/blob/main/CONTRIBUTING.md) doc. - [ ] Tests for the changes have been added (for bug fixes / features). - [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features). ## Pull request type Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior ## What is the new behavior - - - ## Does this introduce a breaking change - [ ] Yes - [ ] No ## Other information --- Closes #{IssueNumber} --- .pre-commit-config.yaml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5280a88..ee4495f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ --- default_install_hook_types: ["pre-commit", "pre-push"] -default_stages: ["commit"] +default_stages: ["pre-commit"] minimum_pre_commit_version: 2.18.0 repos: # Linting @@ -15,21 +15,29 @@ repos: exclude: ^tests/.*$ # https://github.com/prettier/prettier/releases additional_dependencies: ["prettier@3.3.3"] - stages: ["commit"] + stages: ["pre-commit"] # Security - repo: https://github.com/Yelp/detect-secrets rev: v1.5.0 hooks: - id: detect-secrets - stages: ["commit", "push"] + stages: ["pre-commit", "pre-push"] - repo: https://github.com/gitleaks/gitleaks - rev: v8.20.1 + rev: v8.21.2 hooks: - id: gitleaks - stages: ["commit", "push"] + stages: ["pre-commit", "pre-push"] + - repo: https://github.com/fabasoad/pre-commit-grype + rev: v0.6.1 + hooks: + - id: grype-dir + args: + - --grype-args=--by-cve --fail-on=low + - --hook-args=--log-level debug + stages: ["pre-push"] # Markdown - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.42.0 + rev: v0.43.0 hooks: - id: markdownlint-fix # Yaml @@ -37,23 +45,23 @@ repos: rev: v1.35.1 hooks: - id: yamllint - stages: ["push"] + stages: ["pre-push"] # GitHub Actions - repo: https://github.com/rhysd/actionlint - rev: v1.7.3 + rev: v1.7.4 hooks: - id: actionlint args: ["-pyflakes="] - stages: ["commit"] + stages: ["pre-commit"] # Other - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: check-merge-conflict - id: check-json - stages: ["push"] + stages: ["pre-push"] - id: detect-private-key - stages: ["commit", "push"] + stages: ["pre-commit", "pre-push"] - id: end-of-file-fixer - id: mixed-line-ending args: ["--fix=lf"]