From 469d50d8a3a49d072cdd03d412d713fb65c9d8f3 Mon Sep 17 00:00:00 2001 From: SOT-TECH <41361221+sot-tech@users.noreply.github.com> Date: Mon, 5 Feb 2024 07:36:46 +0000 Subject: [PATCH] Update lint.yaml Get Go version from go.mod --- .github/workflows/lint.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 32e1d8a..e3061c7 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -15,7 +15,7 @@ jobs: - uses: "actions/checkout@v4" - uses: "actions/setup-go@v5" with: - go-version: ">=1.21" + go-version-file: go.mod - uses: "authzed/actions/gofumpt@main" - uses: "authzed/actions/go-mod-tidy@main" - uses: "authzed/actions/go-generate@main" @@ -27,7 +27,7 @@ jobs: - uses: "actions/checkout@v4" - uses: "actions/setup-go@v5" with: - go-version: ">=1.21" + go-version-file: go.mod - uses: "golangci/golangci-lint-action@v3" with: version: "latest" @@ -45,4 +45,7 @@ jobs: language: [ "go" ] steps: - uses: "actions/checkout@v4" - - uses: "authzed/actions/codeql@main" \ No newline at end of file + - uses: "actions/setup-go@v5" + with: + go-version-file: go.mod + - uses: "authzed/actions/codeql@main"