mjcheetham/asset-hash
Compute a hash/checksum of a GitHub release asset.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Mar 6, 2023
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: mjcheetham/asset-hash@8a6ebc4f5c9bbff7d0552d95ba246cc69f4ebc89 # v1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repo | Repository from which release assets are located. Defaults to this repository (GITHUB_REPOSITORY) if not specified. | no | — |
| tag | Tag of the release from which assets are located. Defaults to the ref that triggered the workflow (GITHUB_REF) if not specified. | no | — |
| asset | Name of the release asset. If the name starts and ends with '/' then the value is interpretted as a regular expression and the first asset matching the expression is selected. | yes | — |
| hash | The type of hash/checksum to compute. Available values are: 'sha1', 'sha256', 'md5'. | yes | — |
| token | Personal access token used to access the target repository. Only required if the repository is private. | no | — |
Outputs
no outputs