Skip to content

Commit

Permalink
Submit data to CodeCov only if actor has access to token secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed May 10, 2024
1 parent 75a80c9 commit 8dece19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -36,9 +36,13 @@ jobs:
run: go test -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=$(go list ./... | grep -v rpmmd/test$ | tr "\n" ",") ./...

- uses: codecov/codecov-action@v4
if: env.CODECOV_TOKEN
with:
fail_ci_if_error: false
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

db-tests:
name: "🗄 DB tests"
Expand Down

0 comments on commit 8dece19

Please sign in to comment.