Repository navigation
Add run-epv.sh; feature_checks covers adduser's CSV import - #55
Merged
Merged
Conversation
run-epv.sh runs EPV the way the phpbbmodders reusable workflow does and fails the same way: on every Fatal or Error finding not listed in the extension's .github/epv-allowed.txt. EPV itself exits 0 on Error findings, so a hand run missed what fails CI (adduser#48 failed on a plain htmlspecialchars() call that no local check caught). feature_checks.py: the adduser check now also covers the "Add users from CSV" page when the extension has it: file errors, escaping, the check page's counts and messages, no plaintext password on the page, nothing created before confirming, a tampered payload refused, the summary, group and birthday, log entries, a replay creating nothing, the 50-row limit and a full 50-row file within PHP's time limit. It runs with board email off and restores the settings it changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Two additions to
phpbb-test-board/, both from the adduser CSV import work (phpbbmodders/adduser#48).run-epv.shRuns EPV the way the phpbbmodders reusable workflow (
phpbbmodders/.github,epv.yml) does, and fails the same way: on every Fatal or Error finding the extension does not list in.github/epv-allowed.txt. EPV itself exits 0 on Error findings, so running it by hand misses what fails CI. adduser#48 failed EPV on a plainhtmlspecialchars()call that no local check had caught.~/.cache/phpbb-release-tools/epv-BRANCHon first use: a shallow phpBB clone, with EPV installed through phpBB's owncomposer.phar(dev-master, ordev-epv-phpbb4formaster, as CI does).phpBB/ext/, runs EPV on that folder, and compares the findings with the allowed list. Allowed findings that no longer occur are listed so they can be removed.tests/test-phpbb-test-board.shand is added to the shellcheck list in CI.feature_checks.py: adduser's CSV pageWhen adduser has the Add users from CSV page, its check now also covers:
Older adduser versions skip this part. It runs with board email off and restores the settings it changes.
Testing
Claude ran:
run-epv.shon adduser: it reports the same finding as CI on the pushed commit (exit 1), and passes on the fix (exit 0).feature_checks.py --seed-boardon seed-forum boards with adduser#48 mounted: 26/26 on phpBB 3.3.19 and on 4.0.0-a3-dev.tests/test-phpbb-test-board.sh: all pass, including the 7 newrun-epv.shcases.shellcheck -xonrun-epv.sh: clean.Investigated and written by Claude on behalf of William Jacoby (bonelifer).