-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPScan API: Ensure comments are only submitted for changed add-ons #327
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code analysis identified issues
VIP Code Analysis Bot has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.
phpcs scanning turned up:
🚫 16 errors
This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation.
Scan run detail
Software versions
Options file (
|
PHP lint optionsPHP lint files enabled:
Lint modified files only:
Directories not PHP linted:
SVG configurationSVG scanning enabled:
Auto-approval configurationAuto-approvals enabled:
Non-functional changes auto-approved:
Auto-approved file-types:
|
PHPCS configurationPHPCS scanning enabled:
PHPCS severity level:
Standard(s) used:
Runtime set:
Custom sniffs included:
Custom sniffs excluded:
Directories not PHPCS scanned:
WPScan API configurationWPScan API scanning enabled:
|
Posting will continue in further review(s)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous scan continued.
Dismissing review as all inline comments are obsolete by now
…ttic/vip-go-ci into fix/wpscan-api-addon-notification
Scanning latest commit did not yield any new issues. Please have a look at older feedback still existing (commit-ID: 77d49c6) This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation. Scan run detail
|
This pull request introduces code to ensure that WPScan API issues are only submitted for files changed. Previously comments could be submitted for vulnerable/obsolete add-ons that are placed in sub-directories of other add-ons, even if they were not altered. This pull request resolves this by introducing logic to associate all add-ons with changes in pull requests, and if that cannot be done, no comment will be posted for these add-ons.
TODO:
vipgoci_wpscan_filter_unchanged_addons()
)vipgoci_wpscan_get_altered_addons_data_and_slugs()
vipgoci_wpcore_misc_get_addons_not_altered()
).tests/integration/WpscanScanDirsAlteredTest.php
tests/integration/WpscanScanFindAddonDirsAlteredTest.php
tests/integration/WpscanScanSaveForSubmissionTest.php
vipgoci_wpscan_get_altered_addons_data_and_slugs()
vipgoci_wpcore_misc_get_addons_not_altered()
Scan run detail
report as applicablePHPDoc
comments are up to date for functions added or altered