From e9da6dc75d0b3e72b49d00069ff186a2293e911b Mon Sep 17 00:00:00 2001 From: Martin Regen Date: Wed, 14 Feb 2024 17:09:04 +0100 Subject: [PATCH] Update codecov action to use token secret (#2521) --- .github/workflows/buildandtest.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/buildandtest.yml b/.github/workflows/buildandtest.yml index c063b70b1..9eb11700c 100644 --- a/.github/workflows/buildandtest.yml +++ b/.github/workflows/buildandtest.yml @@ -3,7 +3,7 @@ name: Build and Test .NET 8.0 on: push: pull_request: - branches: [ master ] + branches: [ master, main ] paths: - '**.cs' - '**.csproj' @@ -12,9 +12,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true -env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - jobs: build-and-test: name: test-${{matrix.os}}-${{matrix.csproj}} @@ -71,7 +68,7 @@ jobs: uses: codecov/codecov-action@v4 with: name: codecov-umbrella - #token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN }} directory: ${{ env.TESTRESULTS }} env_vars: CSPROJ,OS,DOTNET_VERSION,CONFIGURATION fail_ci_if_error: false