Skip to content

Commit b69fc45

Browse files
joshhaleCopilot
andcommitted
Fix incorrect input name for upload-code-coverage action
The docs showed `report:` as the input for the coverage file path, but the actual action (actions/upload-code-coverage) defines the input as `file:`. Anyone copy-pasting the documented example would silently lose their file path since composite actions ignore unrecognized inputs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b11d9bf commit b69fc45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/code-security/how-tos/maintain-quality-code/set-up-code-coverage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ After your tests generate a Cobertura XML report, upload it to {% data variables
5252
if: {% raw %}github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository{% endraw %}
5353
uses: actions/upload-code-coverage@v1
5454
with:
55-
report: COVERAGE-FILE-PATH.xml
55+
file: COVERAGE-FILE-PATH.xml
5656
language: LANGUAGE
5757
label: LABEL
5858
```
@@ -112,7 +112,7 @@ jobs:
112112
if: {% raw %}github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository{% endraw %}
113113
uses: actions/upload-code-coverage@v1
114114
with:
115-
report: coverage.xml
115+
file: coverage.xml
116116
language: Python
117117
label: code-coverage/pytest
118118
```

0 commit comments

Comments
 (0)