Skip to content

Commit

Permalink
feat(action): add default GitHub token (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Hannes Ljungberg <hannes@5monkeys.se>
  • Loading branch information
drts01 and hannseman authored Aug 22, 2022
1 parent d9af152 commit 4157521
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ jobs:
uses: ./
with:
path: coverage/cobertura-coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 75
fail_below_threshold: true
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ The check will succeed or fail based on your threshold when `fail_below_threshol

## Inputs

### `repo_token` **Required**
### `repo_token`

The GITHUB_TOKEN. See [details](https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret).
The GITHUB_TOKEN. Defaults to `${{github.token}}`

### `path`

Expand Down Expand Up @@ -114,7 +114,6 @@ jobs:
- uses: 5monkeys/cobertura-action@master
with:
path: src/test.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 75
```
Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ inputs:
repo_token:
description: 'The GITHUB_TOKEN for this repo'
required: true
default: ${{ github.token }}
path:
description: 'Path to the cobertura file.'
required: true
Expand Down

0 comments on commit 4157521

Please sign in to comment.