diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 54be095..63f3352 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ jobs: contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0 + - uses: h13/.github/actions/setup-toolchain@1e41d76a661e2835b0cf9df2c85d588f9f0308f7 # v3.0.0 - name: Install actionlint run: go install github.com/rhysd/actionlint/cmd/actionlint@v1.7.11 - name: Run actionlint @@ -28,7 +28,7 @@ jobs: contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0 + - uses: h13/.github/actions/setup-toolchain@1e41d76a661e2835b0cf9df2c85d588f9f0308f7 # v3.0.0 - uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0 with: version: v2.15.0 @@ -39,7 +39,7 @@ jobs: contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0 + - uses: h13/.github/actions/setup-toolchain@1e41d76a661e2835b0cf9df2c85d588f9f0308f7 # v3.0.0 - name: Run tests run: go test ./... -race -coverprofile=coverage.out -covermode=atomic - name: Upload coverage to Codecov @@ -74,7 +74,7 @@ jobs: contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0 + - uses: h13/.github/actions/setup-toolchain@1e41d76a661e2835b0cf9df2c85d588f9f0308f7 # v3.0.0 - name: Build run: go build -o /dev/null ./cmd/gtm-users/ - name: Vet @@ -86,7 +86,7 @@ jobs: contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0 + - uses: h13/.github/actions/setup-toolchain@1e41d76a661e2835b0cf9df2c85d588f9f0308f7 # v3.0.0 - name: Install govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@v1.8.0 - name: Run govulncheck diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ee22f51..3618050 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: with: fetch-depth: 0 - - uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0 + - uses: h13/.github/actions/setup-toolchain@1e41d76a661e2835b0cf9df2c85d588f9f0308f7 # v3.0.0 - uses: sigstore/cosign-installer@756fe2d284c7292c4e9b62c8a28f1e5629c59532 # v4.1.3 diff --git a/.mise.toml b/.mise.toml index 694a828..927e7d3 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,2 +1,5 @@ +[settings] +lockfile = true + [tools] go = "1.26.11" diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..4fa5181 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +# Generated, integrity-checked files: formatters must not rewrite them +# (checksummed in mise.lock; oxfmt reads this file by default) +.mise/ +*.lock diff --git a/mise.lock b/mise.lock new file mode 100644 index 0000000..6b28af8 --- /dev/null +++ b/mise.lock @@ -0,0 +1,36 @@ +# @generated - this file is auto-generated by `mise lock` https://mise.jdx.dev/dev-tools/mise-lock.html + +lockfile_version = 5 + +[[tools.go]] +version = "1.26.11" +backend = "core:go" +specifiers = ["1.26.11"] + +[tools.go."platforms.linux-arm64"] +checksum = "sha256:6c2f29b458b5add0835f18b776f69c8881a6d88428f1484a6da55755e620757e" +url = "https://dl.google.com/go/go1.26.11.linux-arm64.tar.gz" + +[tools.go."platforms.linux-arm64-musl"] +checksum = "sha256:6c2f29b458b5add0835f18b776f69c8881a6d88428f1484a6da55755e620757e" +url = "https://dl.google.com/go/go1.26.11.linux-arm64.tar.gz" + +[tools.go."platforms.linux-x64"] +checksum = "sha256:9849f4e04ee35303714e34fbc3ac8ab44ea3e448a95aa182f91e3b9b79c710ec" +url = "https://dl.google.com/go/go1.26.11.linux-amd64.tar.gz" + +[tools.go."platforms.linux-x64-musl"] +checksum = "sha256:9849f4e04ee35303714e34fbc3ac8ab44ea3e448a95aa182f91e3b9b79c710ec" +url = "https://dl.google.com/go/go1.26.11.linux-amd64.tar.gz" + +[tools.go."platforms.macos-arm64"] +checksum = "sha256:e3a42e67a7a8acf450ebada2b074c7ca863000ca514907b7185b45e8f5cdff57" +url = "https://dl.google.com/go/go1.26.11.darwin-arm64.tar.gz" + +[tools.go."platforms.macos-x64"] +checksum = "sha256:394baae971332f2bc783d6e2004ae57101479bd3b06ed8209a3fe3570d4ce498" +url = "https://dl.google.com/go/go1.26.11.darwin-amd64.tar.gz" + +[tools.go."platforms.windows-x64"] +checksum = "sha256:71ae086f0137e665f855a811cc119152b6a783e0bbc1b906e709f46d80141eb0" +url = "https://dl.google.com/go/go1.26.11.windows-amd64.zip" diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000..33a419f --- /dev/null +++ b/typos.toml @@ -0,0 +1,6 @@ +# Keep spell-fixers away from generated, integrity-checked files. +# The pre-commit hook runs `typos --force-exclude -w`, which would otherwise +# "correct" real package names inside lockfiles (e.g. devlop -> develop) and +# break the checksums recorded in mise.lock. +[files] +extend-exclude = ["*.lock", ".mise/"]