diff --git a/README.md b/README.md index a38be535..95a3761f 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,10 @@ Total Coverage: 99.39% ## Inputs -##### `github-token` (**Required**) -Github token used for posting the comment. To use the key provided by the GitHub -action runner, use `${{ secrets.GITHUB_TOKEN }}`. +##### `github-token` (**Optional**) +Github token used for posting the comment. Defaults to `${{ github.token }}`. + +For alternative `github-token` values see: [Creating Personal Access Tokens](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token) ##### `lcov-file` (**Optional**) The location of the lcov file to read the coverage report from. Defaults to @@ -32,7 +33,6 @@ branch. When this is set a diff of the coverage percentages is shown. ```yml uses: romeovs/lcov-reporter-action@v0.2.16 with: - github-token: ${{ secrets.GITHUB_TOKEN }} lcov-file: ./coverage/lcov.info ``` diff --git a/action.yml b/action.yml index f39d372f..159975ff 100644 --- a/action.yml +++ b/action.yml @@ -8,6 +8,7 @@ inputs: github-token: description: Github token required: true + default: ${{ github.token }} lcov-file: description: The location of the lcov.info file required: false