This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-docs.git


The following commit(s) were added to refs/heads/main by this push:
     new 5931fba  Add pre-commit hooks for large files and workflows (#50)
5931fba is described below

commit 5931fba7492acf38b0a58f65fff01c4b0a972a8c
Author: Dave Fisher <[email protected]>
AuthorDate: Mon Nov 3 15:42:42 2025 -0800

    Add pre-commit hooks for large files and workflows (#50)
    
    * Add pre-commit hooks for large files and workflows
    
    Added new pre-commit hooks for large file checks and GitHub workflows.
    
    * Update GitHub Actions workflow for Pelican build (#51) (#52)
    
    * Enable credential persistence in build workflow
    
    * Change persist-credentials to false in workflow
    
    * Disable credential persistence in pre-commit workflow
    
    * Fix indentation in pre-commit.yml
---
 .github/workflows/pre-commit.yml | 2 ++
 .pre-commit-config.yaml          | 9 +++++++++
 2 files changed, 11 insertions(+)

diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index dd6e295..96a66b4 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -13,6 +13,8 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v4
+        with:
+          persist-credentials: false
       - name: Install
         run: |
           python -m pip install --upgrade pip
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d324a3d..e277dfd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -17,6 +17,7 @@ repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
     rev: v5.0.0
     hooks:
+      - id: check-added-large-files
       - id: check-ast
       - id: check-case-conflict
       - id: check-executables-have-shebangs
@@ -71,3 +72,11 @@ repos:
     rev: v1.7.7
     hooks:
       - id: actionlint
+  - repo: https://github.com/python-jsonschema/check-jsonschema
+    rev: 0.30.0
+    hooks:
+      - id: check-github-workflows
+  - repo: https://github.com/zizmorcore/zizmor-pre-commit
+    rev: v1.16.0
+    hooks:
+      - id: zizmor


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to