diff --git a/README.md b/README.md index 0de1666..4254d3e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ for [Creating a workflow file](https://help.github.com/en/articles/configuring-a ### Inputs - `paths` - [**required**] Comma separated paths of the generated jacoco xml files (supports wildcard glob pattern) -- `token` - [**required**] Github personal token to add commits to Pull Request +- `token` - [*optional* {default: github.token}] Github personal token to add commits to Pull Request - `min-coverage-overall` - [*optional* {default: 80%}] The minimum code coverage that is required to pass for overall project - `min-coverage-changed-files` - [*optional* {default: 80%}] The minimum code coverage that is required to pass for changed files - `update-comment` - [*optional* {default: false}] If true, updates the previous coverage report comment instead of creating new one. diff --git a/action.yml b/action.yml index 76c1691..1681518 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,8 @@ inputs: required: true token: description: 'Github personal token to add commits to Pull Request' - required: true + required: false + default: ${{ github.token }} min-coverage-overall: description: 'The minimum code coverage that is required to pass for overall project' required: false