-
Notifications
You must be signed in to change notification settings - Fork 70
feat(agent): use composer for vuln mgmt package info #962
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
Merged
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
5c5cd42
feat(agent): retrieve info about installed packages
hahuja2 4d36457
feat(agent): ensure composer exists before retrieving info
hahuja2 ba9a11c
feat(agent): initial prototype
hahuja2 d220611
feat(agent): remove unnecessary code
hahuja2 7dc5fda
chore(agent): remove include directive
hahuja2 0a5dcb2
refactor: cleanup the code a bit
lavarou 4402552
fix memory management issues
lavarou 55b74b8
add basic autoloader detection tests
lavarou d058eb3
refactor: cleanup the code a lot
lavarou 9aadc6b
make tests pass on PHPs >= 8.0
lavarou fab25b4
autoloader tests should not have any errors
lavarou e7f5ea8
enhance tests with mocked composer's runtime api
lavarou 291930c
adjust list of magic files
lavarou cddb8dd
add copyright and description to autoloaders mocks
lavarou bd871c2
update doc strings in mock of composer's runtime API
lavarou 07911e0
do something useful with all that package data
lavarou aae7ca4
add ini setting to control use of composer api
lavarou 2ebd005
refactor some more
lavarou bbc453b
refactor some more
lavarou 675fe7b
fix autoloader tests without composer
lavarou 97e8332
fix memleak
lavarou 40fde89
use 'pretty' version for package version
lavarou b867248
only report packages that have version set
lavarou a313703
improve integration tests
lavarou b814457
refactor: simplify interaction with Composer
lavarou de06513
feat: filter out root package
lavarou 4cc07ca
fix: package info from composer wins [WIP]
lavarou d6964ee
fix: package info from composer wins [UNIT TESTS]
lavarou 69377b1
fixup! feat: filter out root package
lavarou 3fe0711
don't call composer when package detection is off
lavarou 8e50756
refactor: rename ini for composer api use
lavarou c69efc6
fixup! improve integration tests
lavarou 76334f2
feat(testing): Adds support for composer api package detection
mfulb b925fed
chore: Disables debugging output
mfulb 06a7733
only legacy code creates package version metric
lavarou b2f8567
refactor package version metric creation
lavarou d270d36
fixup! refactor package version metric creation
lavarou ead97fa
cleanup code before code review
lavarou cb6f920
cleanup code before code review
lavarou 724ee00
clang-format code before code review
lavarou 54b657a
fix failing fw_support unit tests
lavarou be12b2f
chore(agent): Updates comment
mfulb 7e0c996
feat(agent): Adds package supportability metric
mfulb b5ec0a7
fix failing fw_support integration tests
lavarou c013997
add autoloader tests with broken composer install
lavarou f9b42e4
add packages tests with broken composer install
lavarou c53299d
fix(agent): Adds mongodb package supportability metric
mfulb 199adcb
fix(agent): Adds package major number metric for lumen
mfulb 0ab342b
tests: ensure last composer version wins
lavarou d53ea28
tests: nr_hashmap_get->nr_php_packages_get_package
lavarou cdfe1e1
style: clang-format axiom/tests/test_php_packages.c
lavarou b4d8a8f
chore: fix spelling mistakes in comments
lavarou 7fd363e
fix initialization of zend_result variable
lavarou 80fdbdd
use const qualifier for const variable
lavarou fd3f639
fix memleak - don't leave `vendor_path` dangling
lavarou af1170a
format invalid installed packages for debug log
lavarou cb83165
add more assert like NULL checks
lavarou 388c5d0
ensure pointer is not NULL before writing to it
lavarou 7a5c773
cleanup composer mock
lavarou 3a356ea
drop use of `NRSAFESTR` when accessing package_name and package_version
lavarou ab4f401
Revert "use const qualifier for const variable"
lavarou a73bbda
enhance tests with mocked composer's runtime api
lavarou f6b438a
enhance composer detection tests
lavarou 5a73606
enhance tests with mocked composer's runtime api
lavarou 51f6d43
Revert "drop use of `NRSAFESTR` when accessing ..."
lavarou 1fda499
feat(agent): improve package major version metric creation (#965)
mfulb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.