Skip to content

Commit

Permalink
Update codecov action to use token secret (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
mregen authored Feb 14, 2024
1 parent 2797039 commit e9da6dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Test .NET 8.0
on:
push:
pull_request:
branches: [ master ]
branches: [ master, main ]
paths:
- '**.cs'
- '**.csproj'
Expand All @@ -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}}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e9da6dc

Please sign in to comment.