From 1fe7b5ecae76cef2dfd949ff0284c441ec34d93e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 8 Mar 2026 00:43:17 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=20Bump=20actions/github-script=20?= =?UTF-8?q?from=207=20to=208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7...v8) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/close-inactive.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-inactive.yml b/.github/workflows/close-inactive.yml index 78ea2a12..fb9280d6 100644 --- a/.github/workflows/close-inactive.yml +++ b/.github/workflows/close-inactive.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Find and optionally close inactive issues/PRs - uses: actions/github-script@v7 + uses: actions/github-script@v8 env: INACTIVE_DAYS: ${{ github.event_name == 'workflow_dispatch' && inputs.inactive_days || env.DEFAULT_INACTIVE_DAYS }} DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || env.DEFAULT_DRY_RUN }} From ec1a473029b2e3ee363458e22d4cf438f173e2f0 Mon Sep 17 00:00:00 2001 From: fortishield <161459699+FortiShield@users.noreply.github.com> Date: Sun, 8 Mar 2026 06:45:59 +0600 Subject: [PATCH 2/2] Update pre-commit.yml --- .github/workflows/pre-commit.yml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 77a09161..10ce0e3c 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,9 +8,32 @@ on: jobs: pre-commit: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 with: python-version: "3.12" - - uses: pre-commit/action@v3.0.1 + + - name: Install pre-commit + run: | + python -m pip install --upgrade pip + pip install pre-commit + + - name: Run pre-commit checks + run: | + pre-commit run --all-files + + # Optional: auto-fix and commit changes back to the branch + - name: Auto-fix and push + if: github.event_name == 'push' + run: | + pre-commit run --all-files --show-diff-on-failure + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Apply pre-commit fixes" || echo "No changes to commit" + git push