diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3bef73f..ee247b7 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -31,17 +31,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v7.0.0 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: "1.24" - name: Install mise - uses: jdx/mise-action@v4.2.3 + uses: jdx/mise-action@9e7f7633ff6f6d6048a9418a68d48f288f50eb14 # v4.2.3 - name: Extract Version from Tag id: version @@ -55,7 +55,7 @@ jobs: - name: Run GoReleaser (Snapshot) if: github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true' - uses: goreleaser/goreleaser-action@v7.2.3 + uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3 with: distribution: goreleaser version: "~> v2" @@ -66,7 +66,7 @@ jobs: - name: Run GoReleaser (Release) if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'false') - uses: goreleaser/goreleaser-action@v7.2.3 + uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3 with: distribution: goreleaser version: "~> v2" @@ -77,13 +77,13 @@ jobs: - name: Attest Build Provenance if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'false') - uses: actions/attest@v4.1.1 + uses: actions/attest@a1948c3f048ba23858d222213b7c278aabede763 # v4.1.1 with: subject-path: "dist/**/*.tar.gz" - name: Upload Snapshot Artifacts if: github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true' - uses: actions/upload-artifact@v7.0.1 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: snapshot-${{ steps.version.outputs.component }}-${{ steps.version.outputs.version }} path: dist/* diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71c1cca..ed08063 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,11 @@ jobs: go-version: [1.24.x] steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-go@v7.0.0 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: ${{ matrix.go-version }} - - uses: golangci/golangci-lint-action@v9.3.0 + - uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0 with: version: latest - run: go test -race -v ./... diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index da0c9b6..b5de6d0 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Release Please id: release - uses: googleapis/release-please-action@v5.0.0 + uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 with: token: ${{ secrets.GH_PAT_RELEASE_PLEASE_ACTION }} config-file: .github/.release-please-config.json