7ph/limit-size

GitHub Action to track and limit the size of files in pull requests

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jan 30, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: 7ph/limit-size@301725782a5b1883b2a277e3b446e58dd3fcf84c # v1.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github_tokenGitHub Access Tokenyes
filesGlob patterns with optional size limits (e.g. 'dist/*.js: 500kb')yes
fail_on_exceededWhether to fail the action when size limits are exceedednotrue
namedescription
status'pass' or 'fail' depending on whether any files exceeded their limit
total_sizeTotal size of all tracked files in bytes
exceeded_countNumber of files that exceeded their size limit