Update dependencies and clean up scoped vendor - #24
Merged
Conversation
- Bump microsoft/azure-storage-blob ~1.5 (1.5.4) - Bump microsoft/azure-storage-file ~1.2 (1.2.5) - Bump guzzlehttp/guzzle 7.4.0 -> 7.8.2 (transitive) - Bump guzzlehttp/psr7 1.8.4 -> 1.9.1 - Bump squizlabs/php_codesniffer 3.6.1 -> 3.13.5 - Upgrade php-scoper 0.14 -> 0.18.11 - Fix scoper config: scope only runtime deps, not dev tools - Rename whitelist-global-* to expose-global-* (scoper 0.18) - Fix type-safety bug: $blob_client default false -> null - Add plugin-specific .gitignore - Add composer.lock for reproducible builds - Generate PHPCS SARIF report (0 errors, 0 warnings)
Replaces CodeQL (which doesn't support PHP) with PHPCS code scanning via SARIF upload to GitHub Code Scanning.
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Overrides the default setup that was scanning for JavaScript (which this repo doesn't have). Scans GitHub Actions YAML instead.
- Updated the workflow name format for consistency. - Removed the scheduled cron job as it was unnecessary. - Simplified the job structure by eliminating unused permissions and strategy settings. - Clarified step names for better readability. - Ensured the CodeQL initialization uses a fixed language (PHP) instead of a matrix.
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.
This pull request includes dependency updates, configuration improvements, and codebase cleanup to enhance compatibility and maintainability. The most important changes are grouped below by theme.
Dependency and compatibility updates:
microsoft/azure-storage-fileandmicrosoft/azure-storage-blobincomposer.jsonto allow for patch updates, and updateddekode/coding-standardsto accept any4.xversion.php-scoper/composer.jsonto newer versions forhumbug/php-scoperandpxlrbt/php-scoper-prefix-remover.vendor-prefixed/autoload.phpto prevent autoloading on PHP versions older than 5.6, improving error handling for unsupported environments.Configuration improvements:
configsection tocomposer.jsonto allow thedealerdirect/phpcodesniffer-composer-installerplugin, improving plugin management during Composer operations.php-scoper/scoper.inc.phpto scope only runtime dependencies, not dev tools, and replacedwhitelist-*options withexpose-*for global constants, classes, and functions, aligning with newer php-scoper configuration standards..vscode/settings.jsonto enable SARIF viewer integration with GitHub Code Scanning for improved developer experience.Codebase cleanup:
private static $blob_clientfromfalsetonullinincludes/class-controller.php, and updated the conditional check inget_blob_client()to match, improving clarity and consistency in client initialization logic. [1] [2]