From 6da19ca4b8adcf09f49259a78728138cfa05d769 Mon Sep 17 00:00:00 2001 From: fabasoad Date: Sun, 8 Oct 2023 00:17:12 +0900 Subject: [PATCH] Bump igorshubovych/markdownlint-cli from 0.34.0 to 0.37.0 --- .github/workflows/pre-commit.yml | 5 +---- .pre-commit-config.yaml | 11 +++++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 1c83ced..f907a89 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -19,15 +19,12 @@ jobs: runs-on: ubuntu-latest container: image: ghcr.io/fabasoad/pre-commit-container:latest - options: --user root steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Update git config - run: | - repo=$(echo "${{ github.repository }}" | cut -d "/" -f 2) - git config --global --add safe.directory "/__w/$repo/$repo" + run: git config --global --add safe.directory "$(pwd)" - name: Run pre-commit on changed files if: ${{ github.event_name == 'pull_request' }} run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6afd0fc..97d7023 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,6 @@ --- default_install_hook_types: ["pre-commit", "pre-push"] default_stages: ["commit", "push"] -exclude: ^\.gitleaks\.toml$ minimum_pre_commit_version: 2.18.0 repos: # Security @@ -10,18 +9,18 @@ repos: hooks: - id: detect-secrets - repo: https://github.com/zricethezav/gitleaks - rev: v8.16.3 + rev: v8.18.0 hooks: - id: gitleaks # Markdown - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.34.0 + rev: v0.37.0 hooks: - id: markdownlint-fix stages: ["commit"] # Shell - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.9.0.2 + rev: v0.9.0.6 hooks: - id: shellcheck stages: ["push"] @@ -33,13 +32,13 @@ repos: stages: ["push"] # GitHub Actions - repo: https://github.com/rhysd/actionlint - rev: v1.6.24 + rev: v1.6.26 hooks: - id: actionlint stages: ["push"] # Other - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.9-for-vscode + rev: v3.0.3 hooks: - id: prettier stages: ["commit"]