From 4d315d5dd6a8f66b8764ba543c97fa8148b3c3ac Mon Sep 17 00:00:00 2001 From: Faye Amacker <33205765+fxamacker@users.noreply.github.com> Date: Sun, 18 Feb 2024 13:57:27 -0600 Subject: [PATCH] Pin dependencies in coverage.yml Pin dependencies: - actions/checkout - actions/setup-go - codecov/codecov-action Use default Go version instead of specifying go-1.19 because ubuntu-latest will bump go-1.19 to 1.21 this month. --- .github/workflows/coverage.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1fe10561..5f676d15 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -16,13 +16,12 @@ jobs: contents: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 2 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: '1.19' check-latest: true - name: Get dependencies @@ -35,7 +34,7 @@ jobs: run: go test -timeout 60m -race -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v3.1.4 + uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1 with: files: ./coverage.txt fail_ci_if_error: false # we can set this to true after "Could not find a repository" upload error is fixed