diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09894fa..389b90b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ on: branches: ["main"] pull_request: +permissions: + contents: read + jobs: test-and-build: runs-on: ubuntu-latest @@ -14,11 +17,11 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.25.6" - name: Verify formatting run: | - unformatted="$(gofmt -l $(find . -name '*.go' -type f))" + unformatted="$(gofmt -l .)" if [ -n "$unformatted" ]; then echo "Unformatted files:" echo "$unformatted" @@ -47,7 +50,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.25.6" - name: Build Linux CLI binary run: | @@ -68,7 +71,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.25.6" - name: Build Windows CLI binary run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6148923..2caa5b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.25.6" - name: Build artifacts run: |