Skip to content

Commit dbf83f6

Browse files
JeanElsnerhenryiii
andauthored
fix: add codecov token to github action (#375)
* fix: add codecov token to github action v4 of the codecov action requires the token to be specified as a parameter * Update ci.yml * Update ci.yml * docs: add mention of token for codecov Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent f833f3f commit dbf83f6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/pages/guides/coverage.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,21 @@ uploading coverage reports easy for users. A minimal working example for
8787
uploading coverage reports through your workflow, which should be more than
8888
enough for a simple testing suite, can be written as follows:
8989

90+
{% raw %}
91+
9092
```yaml
9193
- name: Upload coverage report
9294
uses: codecov/codecov-action@v4.0.1
95+
with:
96+
token: ${{ secrets.CODECOV_TOKEN }}
9397
```
9498

99+
{% endraw %}
100+
95101
The lines above should be added after the step that runs your tests with the
96102
`--cov` option. See the [docs](https://github.com/codecov/codecov-action#usage)
97-
for all the optional options.
103+
for all the optional options. You'll need to specify a `CODECOV_TOKEN` secret,
104+
as well.
98105

99106
### Using codecov.yml
100107

{{cookiecutter.project_name}}/.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ jobs:
7575
7676
- name: Upload coverage report
7777
uses: codecov/codecov-action@v4.0.1
78+
with:
79+
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}

0 commit comments

Comments
 (0)