From 06fe37694a36f3c4b14d2c8959e96a101cc48d8e Mon Sep 17 00:00:00 2001 From: Vic Kerr Date: Fri, 10 Apr 2026 08:48:56 +0000 Subject: [PATCH] ci: hashify actions/* --- .github/workflows/codespell.yml | 2 +- .github/workflows/container-image.yaml | 2 +- .github/workflows/e2e.yml | 8 ++++---- .github/workflows/lint.yml | 12 ++++++------ .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 39c4fa3ab..a6068a103 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -6,7 +6,7 @@ jobs: codespell: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2 with: skip: .git,_artifacts,*.sum diff --git a/.github/workflows/container-image.yaml b/.github/workflows/container-image.yaml index 618e60ea5..9278897f7 100644 --- a/.github/workflows/container-image.yaml +++ b/.github/workflows/container-image.yaml @@ -23,7 +23,7 @@ jobs: name: build image runs-on: "ubuntu-latest" steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Generate lowercase repository name run: | diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 4231b64e8..35cc87fe5 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -20,16 +20,16 @@ jobs: steps: - name: Check out branch ${{ github.ref }} if: ${{ github.event_name == 'push' }} - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Check out PR ${{ github.event.pull_request.number }} if: ${{ github.event_name == 'pull_request_target' }} - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-go@v6 + - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod @@ -41,7 +41,7 @@ jobs: run: "make test-e2e GINKGO_SKIP=${{ env.SKIP_E2E }}" - name: Upload artifacts - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 if: success() || failure() with: name: logs diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3c8ad24fa..39968b977 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,8 +9,8 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 - - uses: actions/setup-go@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod - name: golangci-lint @@ -20,8 +20,8 @@ jobs: name: lint-api runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 - - uses: actions/setup-go@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod - name: build kube-api-linter @@ -33,7 +33,7 @@ jobs: name: yamllint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install yamllint run: | sudo apt-get update @@ -46,5 +46,5 @@ jobs: name: actionlint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2.1.2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eecca7bec..e0fd1af95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,11 @@ jobs: - name: Set env run: echo "RELEASE_TAG=${GITHUB_REF##refs/tags/}" >> "$GITHUB_ENV" - name: checkout code - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 1 - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod - name: generate release artifacts diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dc1e58a17..38386f9eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,11 +9,11 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 # for SonarQube - - uses: actions/setup-go@v6 + - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod