From 3f6e0797c2d9adeba578d20532bffba88e1d408f Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Fri, 4 Dec 2026 11:44:31 +0800 Subject: [PATCH] chore(actions): pin all actions to full-length commit SHAs --- .github/workflows/install.yaml | 6 +++--- .github/workflows/integrate-cluster-cmd.yaml | 8 ++++---- .github/workflows/integrate-cluster-scale.yaml | 8 ++++---- .github/workflows/integrate-dm.yaml | 8 ++++---- .github/workflows/integrate-playground-ng.yaml | 8 ++++---- .github/workflows/integrate-playground.yaml | 8 ++++---- .github/workflows/integrate-tiup.yaml | 12 ++++++------ .github/workflows/lint.yaml | 2 +- .github/workflows/release-tiup.yaml | 10 +++++----- .github/workflows/reprotest.yaml | 4 ++-- .github/workflows/server-private-files.yaml | 8 ++++---- 11 files changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 5be9d158ff..5b56172c59 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -21,7 +21,7 @@ jobs: working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} path: go/src/github.com/${{ github.repository }} @@ -42,13 +42,13 @@ jobs: working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} steps: - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' id: go - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} path: go/src/github.com/${{ github.repository }} diff --git a/.github/workflows/integrate-cluster-cmd.yaml b/.github/workflows/integrate-cluster-cmd.yaml index 7eb4d9d70d..c96d9eb6c5 100644 --- a/.github/workflows/integrate-cluster-cmd.yaml +++ b/.github/workflows/integrate-cluster-cmd.yaml @@ -45,11 +45,11 @@ jobs: - 'test_tikv_cdc' steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' id: go @@ -104,7 +104,7 @@ jobs: - name: Upload component log if: ${{ failure() }} # if: always() - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: overwrite: true name: component_logs-${{ matrix.cases }} @@ -121,7 +121,7 @@ jobs: find ./logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 with: files: ./tests/tiup-cluster/cover/*.out env: diff --git a/.github/workflows/integrate-cluster-scale.yaml b/.github/workflows/integrate-cluster-scale.yaml index 6a468704e2..3001fe6cc7 100644 --- a/.github/workflows/integrate-cluster-scale.yaml +++ b/.github/workflows/integrate-cluster-scale.yaml @@ -46,11 +46,11 @@ jobs: - 'test_detach_grafana' steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' id: go @@ -106,7 +106,7 @@ jobs: - name: Upload component log if: ${{ failure() }} # if: always() - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: overwrite: true name: cluster_logs-${{ matrix.cases }} @@ -123,7 +123,7 @@ jobs: find ./logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 with: files: ./tests/tiup-cluster/cover/*.out env: diff --git a/.github/workflows/integrate-dm.yaml b/.github/workflows/integrate-dm.yaml index 732fa7a023..d9123bb6ac 100644 --- a/.github/workflows/integrate-dm.yaml +++ b/.github/workflows/integrate-dm.yaml @@ -43,12 +43,12 @@ jobs: - '--native-ssh --do-cases test_upgrade' steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' @@ -97,7 +97,7 @@ jobs: - name: Upload component log if: ${{ failure() }} # if: always() - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: overwrite: true name: dm_logs @@ -114,7 +114,7 @@ jobs: find ./logs -type f -exec sh -c 'echo "{}" && cat {} && echo "\n"' \; || true - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 with: files: ./tests/tiup-dm/cover/*.out env: diff --git a/.github/workflows/integrate-playground-ng.yaml b/.github/workflows/integrate-playground-ng.yaml index 6d33db96b0..fae5819874 100644 --- a/.github/workflows/integrate-playground-ng.yaml +++ b/.github/workflows/integrate-playground-ng.yaml @@ -38,11 +38,11 @@ jobs: timeout-minutes: 10 steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' id: go @@ -68,7 +68,7 @@ jobs: - name: Upload component log if: ${{ failure() }} - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: overwrite: true name: playground_logs @@ -81,7 +81,7 @@ jobs: for f in $(find ./tests/tiup-playground-ng/_tmp/home/data -type f -name "*.log" | grep -vE '/data/(raft|db|region-meta)/'); do echo "${f}" && cat "${f}"; done - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 with: files: ./tests/tiup-playground-ng/cover/*.out env: diff --git a/.github/workflows/integrate-playground.yaml b/.github/workflows/integrate-playground.yaml index f8e6d89a5b..5c03495c18 100644 --- a/.github/workflows/integrate-playground.yaml +++ b/.github/workflows/integrate-playground.yaml @@ -43,11 +43,11 @@ jobs: - "test_playground" steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' id: go @@ -73,7 +73,7 @@ jobs: - name: Upload component log if: ${{ failure() }} - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: overwrite: true name: playground_logs @@ -86,7 +86,7 @@ jobs: for f in $(find ./tests/tiup-playground/_tmp/home/data -type f -name "*.log" | grep -vE '/data/(raft|db|region-meta)/'); do echo "${f}" && cat "${f}"; done - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 with: files: ./tests/tiup-playground/cover/*.out env: diff --git a/.github/workflows/integrate-tiup.yaml b/.github/workflows/integrate-tiup.yaml index 7ae8b98f3b..1971af63f0 100644 --- a/.github/workflows/integrate-tiup.yaml +++ b/.github/workflows/integrate-tiup.yaml @@ -49,11 +49,11 @@ jobs: - "test_tiup" steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' id: go @@ -74,7 +74,7 @@ jobs: bash ./tests/tiup/${{ matrix.cases }}.sh - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 with: files: ./tests/tiup/cover/*out env: @@ -84,11 +84,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' id: go @@ -100,7 +100,7 @@ jobs: make test - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 with: files: cover/*.out env: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index f720e9aea8..3a5f65b33f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,7 +18,7 @@ jobs: working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} path: go/src/github.com/${{ github.repository }} diff --git a/.github/workflows/release-tiup.yaml b/.github/workflows/release-tiup.yaml index a7bd46b859..4353d0b1e8 100644 --- a/.github/workflows/release-tiup.yaml +++ b/.github/workflows/release-tiup.yaml @@ -48,13 +48,13 @@ jobs: - "arm64" steps: - name: Check out code into the Go module directory - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.inputs.git-ref || github.event.pull_request.head.sha }} fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' id: go @@ -182,7 +182,7 @@ jobs: ${TIUP_BIN} mirror publish server ${REL_VER} package/server-${REL_VER}-${ARCH}.tar.gz tiup-server --arch ${{ matrix.arch }} --os ${{ matrix.os }} --desc="${server_desc}" --hide --standalone - name: Upload the all-in-one tarball to GitHub release - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0 if: github.event_name == 'release' with: allowUpdates: true @@ -199,7 +199,7 @@ jobs: needs: release steps: - name: Check out brew code - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 continue-on-error: true if: github.event_name == 'release' with: @@ -220,7 +220,7 @@ jobs: cat Formula/tiup.rb - name: Push new homebrew - uses: actions-js/push@master + uses: actions-js/push@968f4695ca558093eadb24ad83cc5891f47e0cdc # master continue-on-error: true if: github.event_name == 'release' with: diff --git a/.github/workflows/reprotest.yaml b/.github/workflows/reprotest.yaml index 69a18c83e6..6561a91288 100644 --- a/.github/workflows/reprotest.yaml +++ b/.github/workflows/reprotest.yaml @@ -39,10 +39,10 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: 'go.mod' diff --git a/.github/workflows/server-private-files.yaml b/.github/workflows/server-private-files.yaml index 93b5c903fa..e3cf6fede4 100644 --- a/.github/workflows/server-private-files.yaml +++ b/.github/workflows/server-private-files.yaml @@ -20,10 +20,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-go@v6 + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: go.mod - name: Server boundary and repository regressions @@ -36,10 +36,10 @@ jobs: runs-on: macos-26-intel timeout-minutes: 10 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-go@v6 + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: go.mod - name: Require non-skipped filesystem alias regressions