You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-29Lines changed: 46 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,42 +38,59 @@ steps:
38
38
env:
39
39
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40
40
```
41
-
>**Note**: This assumes that you've set your Codecov token inside *Settings > Secrets* as `CODECOV_TOKEN`. If not, you can [get an upload token](https://docs.codecov.io/docs/frequently-asked-questions#section-where-is-the-repository-upload-token-found-) for your specific repo on [codecov.io](https://www.codecov.io). Keep in mind that secrets are *not* available to forks of repositories.
41
+
> [!IMPORTANT]
42
+
> This assumes that you've set your Codecov token inside *Settings > Secrets* as `CODECOV_TOKEN`. If not, you can [get an upload token](https://docs.codecov.io/docs/frequently-asked-questions#section-where-is-the-repository-upload-token-found-) for your specific repo on [codecov.io](https://www.codecov.io).
43
+
> Keep in mind that secrets are *not* available to forks of repositories.
44
+
> View more information on tokenless uploads [here](https://docs.codecov.com/docs/codecov-tokens#uploading-without-a-token).
45
+
46
+
> [!NOTE]
47
+
> If you are using OIDC, you will need to set the `use_oidc` input to `true`, and make sure to add the following to your workflow file:
48
+
> ```yaml
49
+
> permissions:
50
+
> id-token: write
51
+
> contents: read
52
+
> ...
53
+
> steps:
54
+
> - uses: codecov/test-results-action@v1
55
+
> with:
56
+
> use_oidc: true
57
+
> ```
42
58
43
59
## Arguments
44
60
45
61
Codecov's Action supports inputs from the user. These inputs, along with their descriptions and usage contexts, are listed in the table below:
46
62
47
63
| Input | Description | Required |
48
64
| :--- | :--- | :---: |
49
-
| `token` | Repository Codecov token. Used to authorize report uploads | *Required
50
-
| `binary` | The file location of a pre-downloaded version of the CLI. If specified, integrity checking will be bypassed. | Optional
51
-
| `codecov_yml_path` | Specify the path to the Codecov YML | Optional
52
-
| `commit_parent` | Override to specify the parent commit SHA | Optional
53
-
| `directory` | Directory to search for test result reports. | Optional
54
-
| `disable_search` | Disable search for test result files. This is helpful when specifying what files you want to upload with the --file option. | Optional
55
-
| `dry_run` | Don't upload files to Codecov | Optional
56
-
| `env_vars` | Environment variables to tag the upload with (e.g. PYTHON \| OS,PYTHON) | Optional
57
-
| `exclude` | Folders to exclude from search | Optional
58
-
| `fail_ci_if_error` | Specify whether or not CI build should fail if Codecov runs into an error during upload | Optional
59
-
| `file` | Path to test result file to upload | Optional
60
-
| `files` | Comma-separated list of files to upload | Optional
61
-
| `flags` | Flag upload to group test results (e.g. py3.10 | py3.11 | py3.12) | Optional
62
-
| `handle_no_reports_found` | Raise no exceptions when no test result reports found | Optional
63
-
| `name` | User defined upload name. Visible in Codecov UI | Optional
64
-
| `os` | Override the assumed OS. Options are linux \| macos \| windows \| . | Optional
65
-
| `override_branch` | Specify the branch name | Optional
66
-
| `override_build` | Specify the build number | Optional
67
-
| `override_build_url` | The URL of the build where this is running | Optional
68
-
| `override_commit` | Specify the commit SHA | Optional
69
-
| `override_pr` | Specify the pull request number | Optional
70
-
| `report_code` | The code of the report. If unsure, do not include | Optional
71
-
| `root_dir` | Used when not in git/hg project to identify project root directory | Optional
| `url` | Specify the base url to upload (Enterprise use) | Optional
74
-
| `verbose` | Specify whether the Codecov output should be verbose | Optional
75
-
| `version` | Specify which version of the Codecov CLI should be used. Defaults to `latest` | Optional
76
-
| `working-directory` | Directory in which to execute codecov.sh | Optional
65
+
| `token` | Repository Codecov token. Used to authorize report uploads | *Required
66
+
| `binary` | The file location of a pre-downloaded version of the CLI. If specified, integrity checking will be bypassed. | Optional
67
+
| `codecov_yml_path` | Specify the path to the Codecov YML | Optional
68
+
| `commit_parent` | Override to specify the parent commit SHA | Optional
69
+
| `directory` | Directory to search for test result reports. | Optional
70
+
| `disable_search` | Disable search for test result files. This is helpful when specifying what files you want to upload with the --file option. | Optional
71
+
| `dry_run` | Don't upload files to Codecov | Optional
72
+
| `env_vars` | Environment variables to tag the upload with (e.g. PYTHON \| OS,PYTHON) | Optional
73
+
| `exclude` | Folders to exclude from search | Optional
74
+
| `fail_ci_if_error` | Specify whether or not CI build should fail if Codecov runs into an error during upload | Optional
75
+
| `file` | Path to test result file to upload | Optional
76
+
| `files` | Comma-separated list of files to upload | Optional
77
+
| `flags` | Flag upload to group test results (e.g. py3.10 | py3.11 | py3.12) | Optional
78
+
| `handle_no_reports_found` | Raise no exceptions when no test result reports found | Optional
79
+
| `name` | User defined upload name. Visible in Codecov UI | Optional
80
+
| `os` | Override the assumed OS. Options are linux \| macos \| windows \| . | Optional
81
+
| `override_branch` | Specify the branch name | Optional
82
+
| `override_build` | Specify the build number | Optional
83
+
| `override_build_url` | The URL of the build where this is running | Optional
84
+
| `override_commit` | Specify the commit SHA | Optional
85
+
| `override_pr` | Specify the pull request number | Optional
86
+
| `report_code` | The code of the report. If unsure, do not include | Optional
87
+
| `root_dir` | Used when not in git/hg project to identify project root directory | Optional
0 commit comments