Skip to content

Commit 5931fba

Browse files
authored
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
1 parent ad41621 commit 5931fba

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
16+
with:
17+
persist-credentials: false
1618
- name: Install
1719
run: |
1820
python -m pip install --upgrade pip

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ repos:
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
1818
rev: v5.0.0
1919
hooks:
20+
- id: check-added-large-files
2021
- id: check-ast
2122
- id: check-case-conflict
2223
- id: check-executables-have-shebangs
@@ -71,3 +72,11 @@ repos:
7172
rev: v1.7.7
7273
hooks:
7374
- id: actionlint
75+
- repo: https://github.com/python-jsonschema/check-jsonschema
76+
rev: 0.30.0
77+
hooks:
78+
- id: check-github-workflows
79+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
80+
rev: v1.16.0
81+
hooks:
82+
- id: zizmor

0 commit comments

Comments
 (0)