From 9fe462ff6343c4dc94f90fc246c85b91861a5aa3 Mon Sep 17 00:00:00 2001 From: Kevin Mulvey Date: Thu, 28 Mar 2024 10:00:48 -0600 Subject: [PATCH] go 22 --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/release_build.yml | 23 ++++++++++++----------- go.mod | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ae7a054..ab713ae 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,11 +38,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -56,7 +56,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -69,4 +69,4 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 1f52c7d..4f3ef60 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -12,14 +12,14 @@ jobs: steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: check-latest: true cache: true - go-version: "1.21" + go-version: "1.22" - name: Build & Test run: | @@ -29,18 +29,19 @@ jobs: go test -v -race -count 1 -parallel 5 -covermode=atomic -coverprofile="coverage.out" ./... - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} verbose: true # optional (default = false) - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: version: latest args: --timeout=5m - name: Govulncheck - uses: kmulvey/govulncheck-action@v1.1.2 + uses: kmulvey/govulncheck-action@v1.2.0 release: name: ImageDup release @@ -48,21 +49,21 @@ jobs: steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: check-latest: true cache: true - go-version: "1.21" + go-version: "1.22" - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --config .goreleaser.yaml --clean + args: release --config .goreleaser.yaml --clean --snapshot env: GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} diff --git a/go.mod b/go.mod index 4c85008..becc89e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kmulvey/imagedup/v2 -go 1.21 +go 1.22.1 require ( github.com/corona10/goimagehash v1.1.0