diff --git a/.github/linters/zizmor.yml b/.github/linters/zizmor.yml new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c62a5e5..81461fb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,9 +26,9 @@ jobs: npm install npm run build - name: Upload artifact - uses: actions/upload-pages-artifact@v4 + uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 with: path: "_site" # The directory that contains the deployable files - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 44652de..c6e0d30 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 persist-credentials: false - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: "3.x" architecture: "x64" @@ -25,9 +25,9 @@ jobs: python -m pip install --upgrade pip pip install pre-commit - name: Set PY - run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV + run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV" - name: Cache Pre-commit Hooks - uses: actions/cache@v5 + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2a11c4b..d992077 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -148,3 +148,13 @@ repos: args: [--strict, -c=.github/linters/.yaml-lint.yml] types: [yaml] files: \.ya?ml$ + + - repo: https://github.com/zizmorcore/zizmor-pre-commit + rev: v1.23.1 + hooks: + - id: zizmor + name: run zizmor + description: zizmor is a static analysis tool for GitHub Actions + # args: [--config=.github/linters/zizmor.yml] + files: ^\.github/workflows/.*$ + types: [yaml]