From 1fe1b2d878a32e73340c647c76b0368abad5d850 Mon Sep 17 00:00:00 2001 From: Walter Scheper Date: Thu, 14 Sep 2023 21:51:58 -0400 Subject: [PATCH] ci: update actions to latest version --- .github/workflows/actionlint.yml | 4 ++-- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/go-build.yml | 7 +++---- .github/workflows/golangci-lint.yml | 8 ++++---- .github/workflows/release.yml | 10 +++++----- 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 251437c..aab107e 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2.3.4 + uses: actions/checkout@v4 - name: Lint with actionlint - uses: reviewdog/action-actionlint@4decc2a20473dcd14c8c3dc8a27da19d95bb9f59 # v1.14.0 + uses: reviewdog/action-actionlint@v1 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3dfc3b2..50228d7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -32,15 +32,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2.3.4 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@a669cc5936cc5e1b6a362ec1ff9e410dc570d190 # v1.0.15 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} - name: Autobuild - uses: github/codeql-action/autobuild@a669cc5936cc5e1b6a362ec1ff9e410dc570d190 # v1.0.15 + uses: github/codeql-action/autobuild@v2 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@a669cc5936cc5e1b6a362ec1ff9e410dc570d190 # v1.0.15 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/go-build.yml b/.github/workflows/go-build.yml index 2e77e7b..787b4a8 100644 --- a/.github/workflows/go-build.yml +++ b/.github/workflows/go-build.yml @@ -16,15 +16,14 @@ jobs: os: [ubuntu-latest, macOS-latest] steps: - name: Check out code - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go ${{ matrix.go_version }} - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go_version }} - cache: true id: go - name: Get dependencies @@ -37,7 +36,7 @@ jobs: run: make test-report - name: Send coverage - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v2.1.0 + uses: codecov/codecov-action@v4 with: file: ./cover.out flags: unittests,${{ matrix.os }} diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 5f27c14..62eef05 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,9 +11,9 @@ jobs: name: Run golangci-lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@d0a58c1c4d2b25278816e339b944508c875f3613 + - uses: actions/setup-go@v4 with: - go-version: 1.19 - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2.3.4 + go-version: 1.21 + - uses: actions/checkout@v4 - name: Lint with golangci-lint - uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # v2.5.2 + uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5e04df..c7c9fe7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,20 +11,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go - uses: actions/setup-go@d0a58c1c4d2b25278816e339b944508c875f3613 # v2.1.4 + uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: 1.21 - name: Checkout - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2.3.4 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@ff11ca24a9b39f2d36796d1fbd7a4e39c182630a + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}