Commit ba4695a
Upgrade ScanCode-toolkit to version v31 #411
* Upgrade scancode-toolkit to latest beta release #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Add a test class to regen test data #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Upgrade container_inspector to latest 31.0.0 version #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Handle new scan format in scancode pipes #411
Signed-off-by: Jono Yang <jyang@nexb.com>
* Handle package_uids for DiscoveredPackages #411
* Remove create_discovered_packages2 and create_codebase_resources2
Signed-off-by: Jono Yang <jyang@nexb.com>
* Update deprecated code #411
* Normalize package_uids before comparing results in tests
* Update expected test results
Signed-off-by: Jono Yang <jyang@nexb.com>
* Regenerate asgiref 3.3.0 test data #411
* Mark ProjectCodebase tests with expectedFailure
* We will revisit ProjectCodebase and update it to fit our current models
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add asgiref-3.3.0_scancode_scan.json #411
* We are using a scancode scan results for tests since asgiref-3.3.0_scan.json is not exactly the same format as scancode's json output
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add asgiref-3.3.0_walk_test_fixtures.json #411
* Update regen_test_data.py to generate asgiref-3.3.0_walk_test_fixtures.json
Signed-off-by: Jono Yang <jyang@nexb.com>
* Signed-off-by: Jono Yang <jyang@nexb.com>
* Update make_results_summary() #411
* No need to explicity get license_clarity_score in make_results_summary()
* Update expected test results
Signed-off-by: Jono Yang <jyang@nexb.com>
* Exclude system_environment from diff #411
* Add .vscode to .gitignore
Signed-off-by: Jono Yang <jyang@nexb.com>
* Upgrade scancode-toolkit and extractcode to latest version #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Update package_getter #434 #438
* Adapt code from previous version of scancode-toolkit for use in the debian pipeline
Signed-off-by: Jono Yang <jyang@nexb.com>
* Allow packages to be created without versions #438
* Update DiscoveredPackage.create_from_data to create packages without a version
Signed-off-by: Jono Yang <jyang@nexb.com>
* Update expected test results
Signed-off-by: Jono Yang <jyang@nexb.com>
* Report DiscoveredPackage correctly in summary #411
* Ensure that DiscoveredPackages are reported one time in the scan_package pipeline summary
* Add test to check key_file_packages field in the summary output
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add test for docker pipeline for alpine #411
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add docker pipeline test for rpm images #411
Signed-off-by: Jono Yang <jyang@nexb.com>
* Track package_uids in make_results_summary #435
* Avoid checking if package_data dictionary is already in the key_files_packages list
* Keep track of package_uids instead
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add truncated ubuntu docker image for testing #435
Signed-off-by: Jono Yang <jyang@nexb.com>
* Bump scancode and commoncode versions #435
Signed-off-by: Jono Yang <jyang@nexb.com>
* Update docker pipeline #435
* We now run scancode-toolkit on the docker image resources using the new --system-package option
* This gives us the installed system packages in the returned scan
* We use the scan to create the DiscoveredPackages and CodebaseResources
* The rest of the pipeline is unchanged
Signed-off-by: Jono Yang <jyang@nexb.com>
* Fix code validity #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Simplify the filtering of key_files_packages using a QuerySet #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Remove copied code from docker.py #411 #435
* Create Docker pipeline from combining the rootfs pipeline and scan_package pipeline
Signed-off-by: Jono Yang <jyang@nexb.com>
* Update alpine test image and results #411 #435
* TODO: create smaller test images for ubuntu and redhat docker image tests
Signed-off-by: Jono Yang <jyang@nexb.com>
* Properly create multiple package instances #411
* Do not attempt to combine multiple instances of the same package
* Store package_uid in extra data by itself
* Add test for multiple package instances
Signed-off-by: Jono Yang <jyang@nexb.com>
* Sort packages in JSON output by type and name #411
* Normalize package_uid in extra_data fields
Signed-off-by: Jono Yang <jyang@nexb.com>
* Get file info and packages in initial scan #438
* Remove step for scanning application packages
Signed-off-by: Jono Yang <jyang@nexb.com>
* Revert changes to docker pipes and pipeline #438
* Check for existence of installed_file attribute before using it
Signed-off-by: Jono Yang <jyang@nexb.com>
* Use generic package_getter for all distros #438
* Ensure both installed_file and codebase_resource have the same checksum field before comparing them
Signed-off-by: Jono Yang <jyang@nexb.com>
* Use get_path() with strip_root to get paths #438
* Update mappings_keys_by_fieldname
* Look for package data in package_data field instead of packages in save_scan_package_results
Signed-off-by: Jono Yang <jyang@nexb.com>
* Remove distro specific pipes #438
* Move get_installed_packages to rootfs.py
* Use get_package_data instead of get_package_info
* Rename all instances of packages to package_data when scanning for application packages
* Update test docker images and test results
* Add test for basic rootfs
Signed-off-by: Jono Yang <jyang@nexb.com>
* Use list comprehension for key_file_packages #438
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add package_uid field to DiscoveredPackage #411
* Update expected test results
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add test docker image for Ubuntu #438
* Update expected test results
* Remove old ubuntu.tar
Signed-off-by: Jono Yang <jyang@nexb.com>
* Update formatting #411 #438
Signed-off-by: Jono Yang <jyang@nexb.com>
* Use smaller rpm docker image for testing #438
Signed-off-by: Jono Yang <jyang@nexb.com>
* Replace ubuntu docker test image #438
Signed-off-by: Jono Yang <jyang@nexb.com>
* Use purl data in update_or_create_packages #438
* Add package_uid to test package data
* Update expected test result
Signed-off-by: Jono Yang <jyang@nexb.com>
* Bump scancode version to v31.0.0rc1 #438 #411
Signed-off-by: Jono Yang <jyang@nexb.com>
* Consider all PURL fields when ordering Packages #411 #438
Signed-off-by: Jono Yang <jyang@nexb.com>
* Create Packages before Resources #411 #438
* In the LoadInventory pipeline, create the DiscoveredPackages from a scan before creating the CodebaseResources
Signed-off-by: Jono Yang <jyang@nexb.com>
* Add test for load_inventory pipeline #411
Signed-off-by: Jono Yang <jyang@nexb.com>
* Code cleanups and formatting #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Upgrade dependencies #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Refactor create_inventory_from_scan to remove duplicated code #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Add changelog entry #411
Signed-off-by: Thomas Druez <tdruez@nexb.com>
Co-authored-by: Thomas Druez <tdruez@nexb.com>1 parent 777167e commit ba4695a
File tree
48 files changed
+197306
-2773
lines changed- scanpipe
- migrations
- pipelines
- pipes
- templates/scanpipe/includes
- tests
- data
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+197306
-2773
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1726 | 1726 | | |
1727 | 1727 | | |
1728 | 1728 | | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
1729 | 1734 | | |
1730 | 1735 | | |
1731 | 1736 | | |
| |||
1769 | 1774 | | |
1770 | 1775 | | |
1771 | 1776 | | |
1772 | | - | |
| 1777 | + | |
1773 | 1778 | | |
1774 | 1779 | | |
1775 | 1780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
| 53 | + | |
52 | 54 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | | - | |
62 | 60 | | |
63 | | - | |
64 | 61 | | |
65 | | - | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| |||
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
105 | | - | |
| 101 | + | |
| 102 | + | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
110 | | - | |
| 107 | + | |
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
115 | | - | |
| 112 | + | |
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
120 | | - | |
| 117 | + | |
121 | 118 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 119 | + | |
126 | 120 | | |
127 | 121 | | |
128 | 122 | | |
129 | 123 | | |
130 | 124 | | |
131 | | - | |
| 125 | + | |
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
76 | | - | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
This file was deleted.
0 commit comments