Added Check Token subaction.
All checks were successful
Test Action / test (push) Successful in 4s

This commit is contained in:
2026-01-11 19:24:23 +01:00
parent 2bb60fc0ed
commit 32a4011b54
5 changed files with 126 additions and 2 deletions

View File

@@ -150,7 +150,9 @@ Options:
## GitHub Token Verification
The project includes a utility to verify the validity of your GitHub token:
The project includes a utility to verify the validity of your GitHub token.
### CLI Utility
```bash
check-github-token <token>
@@ -158,6 +160,20 @@ check-github-token <token>
If no token is provided as an argument, it will attempt to read from the `GITHUB_TOKEN` environment variable.
### GitHub Action
You can also use the `check-token` subaction in your workflows:
```yaml
- name: Verify Token
uses: koszewscy/setup-github-release/check-token@v1
with:
repository: 'actions/checkout' # Optional, defaults to actions/checkout
token: ${{ secrets.MY_TOKEN }}
```
If the `token` input is not provided, it will read from the `GITHUB_TOKEN` environment variable.
## Asset Selection Procedure
The list of assets from the latest release is filtered based on the following rules: