Skip to content

Commit

Permalink
Restrict CodeCov uploads to Uninett upstream repos
Browse files Browse the repository at this point in the history
Forks will not have the necessary CodeCov token to upload coverage
results, causing this workflow to fail.
  • Loading branch information
johannaengland committed May 3, 2022
1 parent 83a7835 commit 5057062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
/tmp/pytest-of-runner
- name: "Upload coverage to Codecov"
if: "github.repository_owner == 'Uninett'"
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
Expand Down

0 comments on commit 5057062

Please sign in to comment.