From 03d38e2f9ee93a5fb3d5f55edd89f1ba617c55a8 Mon Sep 17 00:00:00 2001 From: PerfectPan <24316656+PerfectPan@users.noreply.github.com> Date: Thu, 1 Oct 2026 01:51:07 +0800 Subject: [PATCH] ci(review): pin actions/checkout to v7.0.1 Pin by commit SHA so the review workflow is reproducible, and bump it here so downstream copies of review.yml stay identical to the template. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/ci.yml.example | 2 +- .github/workflows/review.yml | 6 +++--- CHANGELOG.md | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml.example b/.github/workflows/ci.yml.example index 5535b2e..82f1f7e 100644 --- a/.github/workflows/ci.yml.example +++ b/.github/workflows/ci.yml.example @@ -10,6 +10,6 @@ jobs: name: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Replace with project-specific setup and validation commands. - run: echo "Configure CI for this project" diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index f33b2d4..f6cbd0f 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -11,7 +11,7 @@ jobs: name: repository checks runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: ./scripts/check-repository.sh pr-title: @@ -19,7 +19,7 @@ jobs: if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: ./scripts/check-pr-title.sh "$PR_TITLE" env: PR_TITLE: ${{ github.event.pull_request.title }} @@ -30,7 +30,7 @@ jobs: if: github.event_name == 'pull_request' && github.event.pull_request.user.type != 'Bot' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: printf '%s\n' "$PR_BODY" | ./scripts/check-pr-body.sh env: PR_BODY: ${{ github.event.pull_request.body }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fba983..c52a162 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- Workflows pin `actions/checkout` to the v7.0.1 commit SHA; downstream repositories take action bumps from this template instead of editing `review.yml` locally. - `configure-github-repository.sh` accepts `--approvals N` (use 0 for a single maintainer) and repeatable `--check NAME` for project CI jobs. - Removed trailing blank lines that failed `git diff --cached --check` in repositories copying the template files. - Plans now pair technical decisions with a detailed execution plan: preconditions, completion contract, ordered tasks with exit conditions, validation ledger, and rollback per batch.