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 Apr 30, 2024
1 parent 59d4d95 commit 3583ab4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
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 3583ab4

Please sign in to comment.