{"id":36616320,"url":"https://github.com/pelotech/github-action-file-size-checker","last_synced_at":"2026-01-12T09:11:57.956Z","repository":{"id":330175808,"uuid":"1121207649","full_name":"pelotech/github-action-file-size-checker","owner":"pelotech","description":"github action to check file sizes that are committed to the repo","archived":false,"fork":false,"pushed_at":"2025-12-23T19:29:37.000Z","size":36,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-25T07:19:25.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/pelotech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-22T15:56:57.000Z","updated_at":"2025-12-23T19:29:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pelotech/github-action-file-size-checker","commit_stats":null,"previous_names":["pelotech/github-action-file-size-checker"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pelotech/github-action-file-size-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelotech%2Fgithub-action-file-size-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelotech%2Fgithub-action-file-size-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelotech%2Fgithub-action-file-size-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelotech%2Fgithub-action-file-size-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelotech","download_url":"https://codeload.github.com/pelotech/github-action-file-size-checker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelotech%2Fgithub-action-file-size-checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-12T09:11:56.238Z","updated_at":"2026-01-12T09:11:57.951Z","avatar_url":"https://github.com/pelotech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Size Checker Action\n\nFile Size Checker ensures every newly added file in a pull request stays below a size threshold that you define. Drop it into any workflow to keep oversized binaries or assets from entering your repository.\n\n## Quick Start\n\u003c!-- x-release-please-start-version --\u003e\n```yaml\nname: Check File Sizes\n\non:\n  pull_request:\n    branches:\n      - main\n\njobs:\n  check-size:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Fail if new files are committed over 25KiB\n        id: size_check\n        uses: pelotech/github-action-file-size-checker@v0.1.2\n        with:\n          max_file_size_kib: '25'\n```\n\u003c!-- x-release-please-end --\u003e\n\n## Inputs\n\n| Name | Required | Default | Description |\n| --- | --- | --- | --- |\n| `max_file_size_kib` | Yes | `20` | Maximum filesize, in kilobytes, that any newly added file may have. |\n| `base_sha` | Yes | `${{ github.event.pull_request.base.sha }}` | Commit SHA used as the lower bound of the diff. Override this if you need to compare against a custom baseline (for example, on push workflows). |\n| `head_sha` | Yes | `${{ github.event.pull_request.head.sha }}` | Commit SHA used as the upper bound of the diff. Override when running outside of a pull request. |\n\n\u003e **Tip:** When the workflow runs inside a pull request, you can omit `base_sha` and `head_sha` because the defaults resolve automatically.\n\n## Outputs\n\n- `violations_list`: Markdown-formatted bullet list describing every new file above the size cap; empty string when no violations occur.\n- `max_size_human`: Human-readable representation of the chosen size limit (for example, 25KiB).\n\n## Usage Tips\n- Ensure the workflow fetches enough history (actions/checkout with fetch-depth: 0) so both SHAs exist locally.\n- The action only inspects files that are newly added between `base_sha` and `head_sha`. Updates to existing files are ignored by design.\n- If you run the action on push or scheduled workflows, provide valid `base_sha`/`head_sha` inputs to control the diff range.\n- Custom comparisons: Supply explicit `base_sha` and `head_sha` to compare across release branches or long-lived feature branches.\n- You can use the outputs with other actions to enhance the workflow when there are violations. For example, to post a PR comment when there are violations:\n  ```yaml\n  - name: Post comment when violations exist\n      if: steps.size_check.outputs.violations_list != ''\n      uses: peter-evans/create-or-update-comment@v5\n      with:\n        issue-number: ${{ github.event.pull_request.number }}\n        body: |\n          ## New File Size Violation Detected\n\n          The following files exceed **${{ steps.size_check.outputs.max_size_human }}**:\n\n          ${{ steps.size_check.outputs.violations_list }}\n\n          Please shrink or remove the files above the limit.\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelotech%2Fgithub-action-file-size-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelotech%2Fgithub-action-file-size-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelotech%2Fgithub-action-file-size-checker/lists"}