Submit data to CodeCov only if actor has access to token secrets
This commit is contained in:
parent
75a80c9625
commit
8dece19342
1 changed files with 4 additions and 0 deletions
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
|
@ -36,9 +36,13 @@ jobs:
|
||||||
run: go test -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=$(go list ./... | grep -v rpmmd/test$ | tr "\n" ",") ./...
|
run: go test -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=$(go list ./... | grep -v rpmmd/test$ | tr "\n" ",") ./...
|
||||||
|
|
||||||
- uses: codecov/codecov-action@v4
|
- uses: codecov/codecov-action@v4
|
||||||
|
if: env.CODECOV_TOKEN
|
||||||
with:
|
with:
|
||||||
fail_ci_if_error: false
|
fail_ci_if_error: false
|
||||||
verbose: true
|
verbose: true
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
db-tests:
|
db-tests:
|
||||||
name: "🗄 DB tests"
|
name: "🗄 DB tests"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue