diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index f05156dda..cf4f4085f 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -19,23 +19,23 @@ jobs: steps: - name: 📥 Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3 with: fetch-depth: 0 - name: 🐍 Setup Python 3.11 - uses: actions/setup-python@v6 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: "3.11" cache: "pip" - name: 📦 Setup Node.js 20 - uses: actions/setup-node@v5 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: "20" - name: 🔧 Cache pre-commit environments - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: | ~/.cache/pre-commit @@ -51,6 +51,6 @@ jobs: pip install pre-commit - name: 🔍 Run documentation quality checks - uses: pre-commit/action@v3.0.1 + uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 with: extra_args: --all-files --show-diff-on-failure diff --git a/.github/workflows/prowlarr-ci.yml b/.github/workflows/prowlarr-ci.yml index 844367bd9..b76d98455 100644 --- a/.github/workflows/prowlarr-ci.yml +++ b/.github/workflows/prowlarr-ci.yml @@ -18,16 +18,16 @@ jobs: env: API_KEY: fakeapikey steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3 - name: Setup Python - uses: actions/setup-python@v6 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: "3.10" cache: "pip" - name: Setup Node.js - uses: actions/setup-node@v5 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: "18" @@ -35,7 +35,7 @@ jobs: run: pip install -r requirements.txt - name: Cache pre-commit hooks - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ~/.cache/pre-commit key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1702cda11..781b2526e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,8 +44,8 @@ repos: stages: [pre-commit, pre-merge-commit, pre-push, manual] # YAML formatting - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.8 + - repo: https://github.com/rbubley/mirrors-prettier + rev: v3.8.4 hooks: - id: prettier files: \.(yaml|yml)$