{"id":24167315,"url":"https://github.com/thewh1teagle/checksum","last_synced_at":"2025-08-10T07:18:30.289Z","repository":{"id":268962716,"uuid":"906003261","full_name":"thewh1teagle/checksum","owner":"thewh1teagle","description":"Github reusable action for create checksum.txt for release assets","archived":false,"fork":false,"pushed_at":"2025-03-26T23:54:07.000Z","size":22,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T17:19:43.882Z","etag":null,"topics":["actions","github","security","workflow"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/checksums-action","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thewh1teagle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-20T00:39:43.000Z","updated_at":"2025-07-16T23:24:11.000Z","dependencies_parsed_at":"2025-03-27T00:33:39.586Z","dependency_job_id":null,"html_url":"https://github.com/thewh1teagle/checksum","commit_stats":null,"previous_names":["thewh1teagle/checksum"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/thewh1teagle/checksum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Fchecksum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Fchecksum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Fchecksum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Fchecksum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thewh1teagle","download_url":"https://codeload.github.com/thewh1teagle/checksum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewh1teagle%2Fchecksum/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269691284,"owners_count":24460000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github","security","workflow"],"created_at":"2025-01-12T21:13:05.932Z","updated_at":"2025-08-10T07:18:30.270Z","avatar_url":"https://github.com/thewh1teagle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# checksum\n\nThis action calculates the checksum (e.g., SHA-256) for all assets in your GitHub releases and generates a `checksum.txt` file. This is useful for ensuring file integrity during downloads and uploads.\n\n## Usage\n\nInclude in your workflow file:\n\n```yml\nuses: thewh1teagle/checksum@v2\nwith:\n  patterns: | # Optional\n    *.zip\n    *.tar.gz\n  algorithm: sha256 # Optional. See bun.sh/docs/api/hashing#bun-cryptohasher for supported algorithms\n```\n\nYou must enable write permission in github.com/user/repo/settings/actions -\u003e Workflow permissions -\u003e Read and write permissions.\n\n## Inputs\n\n| **Input Name** | **Description**                                                                                                                 | **Required** | **Default**      |\n| -------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------ | ---------------- |\n| `repo`         | The GitHub repository in the format `owner/repo`.                                                                               | No           |                  |\n| `patterns`     | File patterns to run checksum on. Supports glob patterns like `*.zip`, `*.tar.gz`.                                              | No           | `\"\"` (all files) |\n| `algorithm`    | Hash algorithm to use. Defaults to `sha256`. See [Bun hashing documentation](https://bun.sh/docs/api/hashing#bun-cryptohasher). | No           | `sha256`         |\n| `pre-release`  | Whether to run on pre-releases.                                                                                                 | No           | `false`          |\n| `tag`          | The tag of the release to generate checksums for.                                                                               | No           | `''`             |\n| `file-name`    | The name of the checksum file to generate.                                                                                      | No           | `checksum.txt`   |\n| `dry-run`      | Run without upload. will be available in the console output of the action.                                                      | No           | `checksum.txt`   |\n| `bun-version`  | The version of Bun to use.                                                                                                      | No           | `latest`         |\n| `reverse-order`| If set to true the order of checksum and filename in the output file will be reversed.                                          | No           | `false`          |\n| `separator`    | Separator between filename and checksum. If you want to use special chars you can pass something like `${{ fromJSON('\"\\n\"') }}` | No           | `\\t`             |\n\n## Example checksum.txt\n\n```txt\na.txt\tca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb\nb.txt\t0263829989b6fd954f72baaf2fc64bc2e2f01d692d4de72986ea808f6e99813f\n```\n\nEach line separated by the specified separator. (By default `\\t`)\n\n## Full example\n\n\u003cdetails\u003e\n\n```yml\nname: Create checksum.txt\n\non:\n  schedule:\n    - cron: \"0 1 * * *\" # Runs at 1:00 AM UTC daily\n  workflow_dispatch:\n\njobs:\n  test:\n    runs-on: macos-latest\n\n    steps:\n      - name: Run checksum action\n        uses: thewh1teagle/checksum@v2\n        with:\n          patterns: | # Optional\n            *.zip\n            *.tar.gz\n            *.txt\n            !b.txt\n          algorithm: sha256 # Optional\n        env:\n          # You must enable write permission in github.com/user/repo/settings/actions -\u003e Workflow permissions -\u003e Read and write permissions\n          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewh1teagle%2Fchecksum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthewh1teagle%2Fchecksum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewh1teagle%2Fchecksum/lists"}