From 0ddeabf8669e64e224285c494b74c1c31c5aac3b Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 26 Jun 2026 18:10:51 +0000 Subject: [PATCH] ci: zizmor fix The changes are from: ``` zizmor --fix=all --gh-token=$(gh auth token) .github/workflows ``` go/github-zizmor-help?polyglot=github-com#auto-fixes-via-the-fix-flag b/527976233 --- .github/workflows/ci.yaml | 17 ++++++++++------- .github/workflows/release.yaml | 8 +++++--- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 934206eec..8a009d7e0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,33 +10,36 @@ jobs: unit-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 with: fetch-depth: 1 - - uses: actions/setup-go@v6 + persist-credentials: false + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6 with: go-version-file: 'go.mod' - run: go test -race ./... lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 with: fetch-depth: 1 - - uses: actions/setup-go@v6 + persist-credentials: false + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6 with: go-version-file: 'go.mod' - name: golangci-lint - uses: golangci/golangci-lint-action@v9 + uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9 with: version: v2.12.1 quality-checker: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 with: fetch-depth: 1 - - uses: actions/setup-go@v6 + persist-credentials: false + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6 with: go-version-file: 'go.mod' - name: run the quality checker (which catches obvious mistakes, missing docs, etc.) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 46b351ca0..0bc27ef6b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,12 +31,14 @@ jobs: - os: windows arch: amd64 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 with: ref: ${{ github.event.release.tag_name }} - - uses: actions/setup-go@v6 + persist-credentials: false + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6 with: go-version-file: 'go.mod' + cache: false # The API linter does not use these, but we need them to build the # binaries. # @@ -59,7 +61,7 @@ jobs: run: echo "raw_version=${TAG_NAME#v}" >> $GITHUB_OUTPUT shell: bash - name: Upload the ${{ matrix.osarch.os }}/${{ matrix.osarch.arch }} release. - uses: actions/upload-release-asset@v1 + uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1 env: GITHUB_TOKEN: ${{ github.token }} with: