You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a GitHub Actions leak check on pull requests and pushes to main
fail CI when config.yaml, config.yaml.bak, or anything under data/ is committed
scan non-Markdown tracked files for hardcoded IPv4 literals, with a narrow allowlist for existing demo/example literals
document the CI enforcement and allowlist process in both CONTRIBUTING sections
Security impact
This adds CI-only validation. It does not expand dashboard runtime privileges or add write operations.
Verification
python3 -m py_compile scripts/check_leaks.py
python3 scripts/check_leaks.py
staged temporary negative fixtures for config.yaml, data/, and a hardcoded IPv4 literal; the script failed as expected, then the fixtures were removed before commit
Merged as a105f4e, authorship intact. Shows as closed rather than merged because the PR touches .github/workflows/ and the maintainer token lacks workflow scope; squashed locally and pushed over SSH.
Verified: clean tree passes, injected private IPs are caught with file and line, force-added config.yaml and data/ are caught, and CI is green on main. The allowlist design is the part that matters most — narrow path: literal entries, * only on demo files, and the version-string false positive handled by exemption rather than by loosening the pattern.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For mxx1111/spare-cycles#1
Summary
mainconfig.yaml,config.yaml.bak, or anything underdata/is committedSecurity impact
This adds CI-only validation. It does not expand dashboard runtime privileges or add write operations.
Verification
python3 -m py_compile scripts/check_leaks.pypython3 scripts/check_leaks.pyconfig.yaml,data/, and a hardcoded IPv4 literal; the script failed as expected, then the fixtures were removed before commit