{"id":15090130,"url":"https://github.com/freenet-actions/check-file-size","last_synced_at":"2026-03-11T12:21:53.615Z","repository":{"id":247549622,"uuid":"822605079","full_name":"freenet-actions/check-file-size","owner":"freenet-actions","description":"This action checks all files in a configurable directory (recursively) for a configurable maximum file size. It also allows to automatically add a comment to the triggering PR that lists all oversized files.","archived":false,"fork":false,"pushed_at":"2026-02-16T16:13:02.000Z","size":637,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-16T23:18:24.104Z","etag":null,"topics":["action","check","file","filesize","limit","oversize","oversized","pr","size"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freenet-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"2024-07-01T13:12:53.000Z","updated_at":"2026-02-16T16:10:32.000Z","dependencies_parsed_at":"2024-07-09T10:31:38.986Z","dependency_job_id":"8f260102-62db-4c95-ab2b-12434db26fe9","html_url":"https://github.com/freenet-actions/check-file-size","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.16000000000000003","last_synced_commit":"8d864cfc6aa7a7e07831f338b6da84c771bbff78"},"previous_names":["freenet-actions/check-file-size"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/freenet-actions/check-file-size","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenet-actions%2Fcheck-file-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenet-actions%2Fcheck-file-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenet-actions%2Fcheck-file-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenet-actions%2Fcheck-file-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freenet-actions","download_url":"https://codeload.github.com/freenet-actions/check-file-size/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenet-actions%2Fcheck-file-size/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30280801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:23:26.802Z","status":"ssl_error","status_checked_at":"2026-03-09T02:22:46.175Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["action","check","file","filesize","limit","oversize","oversized","pr","size"],"created_at":"2024-09-25T09:21:46.010Z","updated_at":"2026-03-11T12:21:53.595Z","avatar_url":"https://github.com/freenet-actions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check File Size\n\n[![LICENSE](https://img.shields.io/github/license/freenet-actions/check-file-size)](https://github.com/freenet-actions/check-file-size/blob/main/LICENSE)\n\nThis action checks all files in a configurable directory (recursively) for a configurable maximum file size. It also allows to automatically add a comment to the triggering PR that lists all oversized files.\n\n## Inputs\n\n| name          | description                                                                                                  | default | required |\n|---------------|--------------------------------------------------------------------------------------------------------------|---------|----------|\n| github_token  | The GitHub token that will be used to create the comment if files exceeded the maximum file size             |         | true*    |\n| directory     | The directory that will be recursively checked for oversized files                                           | ./      | false    |\n| max_size      | The maximum allowed file size in kilobytes                                                                   | 16000   | false    |\n| post_comment  | **(only works with PRs)** Whether the action should post a comment to the PR which lists the oversized files | true    | false    |\n| fail_on_find  | Whether the action should fail if files exceeding the maximum file size were found                           | false   | false    |\n| ignored_files | A string array of files or directories that should not be checked                                            | ''      | false    |\n\n*github_token is only necessary if `post_comment` is `true`, **which is the default**.\n\n## Outputs\n\n| name                      | description                                                      |\n|---------------------------|------------------------------------------------------------------|\n| has_found_oversized_files | A boolean that indicates whether oversized files have been found |\n| oversized_files           | A string array of the files that exceeded the maximum file size  |\n\n## Permissions\n\n\u003e [!NOTE]\n\u003e If `post_comment` is `true`, **which is the default**, workflows using this action **require** the `pull-requests: write` OR the `issues: write` permission.\n\n## Usage\n\n### Checking all files against the default size limit of 16 MB\n\nBy default, if oversized files have been found, the job will continue and a comment listing these files will be posted to the PR.\n\n```yaml\nuses: freenet-actions/check-file-size@v2 # Please pin a commit hash instead.\nwith:\n  github_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Checking all files against the size limit of 32 MB without posting a comment\n\nIf oversized files have been found, the job will continue but not post a comment. The files can always be seen in the workflow logs.\n\n```yaml\nuses: freenet-actions/check-file-size@v2 # Please pin a commit hash instead.\nwith:\n  max_size: 32000\n  post_comment: false\n```\n\n### Checking all files in `directory` except for 3 specific ones and 1 specific subdirectory\n\n```yaml\nuses: freenet-actions/check-file-size@v2 # Please pin a commit hash instead.\nwith:\n  github_token: ${{ secrets.GITHUB_TOKEN }}\n  directory: directory\n  ignored_files: |\n    directory/file1.json\n    directory/file2.png\n    directory/directory2/file3.pdf\n    directory/ignored/\n```\n\n### Example using every input\n\nThis example uses a different syntax to define the ignored files. **Both syntaxes are valid**.\n\n```yaml\nuses: freenet-actions/check-file-size@v2 # Please pin a commit hash instead.\nwith:\n  github_token: ${{ secrets.GITHUB_TOKEN }}\n  directory: ./\n  max_size: 16000\n  post_comment: true\n  fail_on_find: true\n  ignored_files: file1.json, directory/file2.png, directory/directory2/file3.pdf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreenet-actions%2Fcheck-file-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreenet-actions%2Fcheck-file-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreenet-actions%2Fcheck-file-size/lists"}