From 58a10e9e18641433ede136b79489bdbf817c59fa Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 10 Dec 2025 09:22:51 +0900 Subject: [PATCH] ci: Ensure using pinned actions/checkout See also: https://github.com/ruby/rdoc/pull/1473#discussion_r2602196203 --- .github/workflows/cloudflare-preview.yml | 4 ++-- .github/workflows/gh-pages.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push_gem.yml | 2 +- .github/workflows/ruby-core.yml | 4 ++-- .github/workflows/test.yml | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cloudflare-preview.yml b/.github/workflows/cloudflare-preview.yml index d119358ffc..08344ba174 100644 --- a/.github/workflows/cloudflare-preview.yml +++ b/.github/workflows/cloudflare-preview.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout PR Code - uses: actions/checkout@v6.0.1 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: repository: ${{ github.event.client_payload.pr_checkout_repository }} ref: ${{ github.event.client_payload.pr_head_sha }} @@ -74,4 +74,4 @@ jobs: body: commentBody }); console.log("Created new preview comment"); - } \ No newline at end of file + } diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8d1837a6f4..009433668c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -20,7 +20,7 @@ jobs: if: ${{ github.repository == 'ruby/rdoc' && !startsWith(github.event_name, 'pull') }} steps: - name: Checkout - uses: actions/checkout@v6.0.1 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Ruby uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 686835e3c1..5abc457efe 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: fail-fast: false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6.0.1 # v3.3.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 # libyaml-dev is needed for psych, see https://github.com/ruby/setup-ruby/issues/409 - if: ${{ matrix.os == 'ubuntu-latest' }} run: sudo apt install libyaml-dev diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index ecb0fc852b..d85c3b1f36 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -27,7 +27,7 @@ jobs: with: egress-policy: audit - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.0.1 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Set up Ruby uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0 diff --git a/.github/workflows/ruby-core.yml b/.github/workflows/ruby-core.yml index 03a3a51ccf..a5f6bfc59e 100644 --- a/.github/workflows/ruby-core.yml +++ b/.github/workflows/ruby-core.yml @@ -28,7 +28,7 @@ jobs: bundler: none - name: Save latest buildable revision to environment run: echo "REF=$(ruby -v | cut -d')' -f1 | cut -d' ' -f5)" >> $GITHUB_ENV - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v3.1.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: repository: ruby/ruby path: ruby/ruby @@ -51,7 +51,7 @@ jobs: autoconf ./configure -C --disable-install-doc working-directory: ruby/ruby - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v3.1.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: path: ruby/rdoc - name: Build RDoc locally diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49e09b0482..4fe1fd1831 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v6.0.1 # v3.3.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 # libyaml-dev is needed for psych, see https://github.com/ruby/setup-ruby/issues/409 - if: ${{ matrix.os == 'ubuntu-latest' }} run: sudo apt install libyaml-dev