Skip to content

Commit b42adad

Browse files
Merge pull request #54 from josephearl/github-token-optional
Make GitHub token optional
2 parents 7edad59 + b87e8be commit b42adad

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This Action defines the following formal inputs.
6262
| **`coverage_results_path`** | true | Path to the JaCoCo Code Coverage XML format file which will be used to generate a report.
6363
| **`coverage_report_name`** | false | The name of the code coverage report object that will be attached to the Workflow Run. Defaults to the name `COVERAGE_RESULTS_<datetime>` where `<datetime>` is in the form `yyyyMMdd_hhmmss`.
6464
| **`coverage_report_title`** | false | The title of the code coverage report that will be embedded in the report itself, which defaults to the same as the `coverage_report_name` input.
65-
|**`github_token`** | true | Input the GITHUB TOKEN Or Personal Access Token you would like to use. Recommended to use GitHub auto generated token ${{ secrets.GITHUB_TOKEN }}
65+
|**`github_token`** | false | Input the GITHUB TOKEN Or Personal Access Token you would like to use. Defaults to the auto generated token. Recommended to use GitHub auto generated token ${{ secrets.GITHUB_TOKEN }}.
6666
|**`minimum_coverage`** | false | Input the minimum code coverage recommended.
6767
|**`fail_below_threshold`** | false | Set True to fail the action and False to let it pass.
6868
|**`skip_check_run`** | false | If true, will skip attaching the Coverage Result report to the Workflow Run using a Check Run. Useful if your report has 65k characters that is not accepted by Github REST and GraphQL APIs

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ inputs:
3131
GITHUB_TOKEN to authenticate against API calls to attach
3232
report to Workflow Run.
3333
required: false
34-
34+
default: ${{github.token}}
35+
3536
skip_check_run:
3637
description: |
3738
If true, will skip attaching the Tests Result report to

0 commit comments

Comments
 (0)