Skip to content

Commit cb2d65e

Browse files
Improve d2d pipeline runs (#1747)
* Improve ruby d2d exclusions configuration Reference: #1476 Signed-off-by: Ayan Sinha Mahapatra <[email protected]> * Do not return directories as unmapped resources Reference: #1655 Signed-off-by: Ayan Sinha Mahapatra <[email protected]> * Update map_type filters in CodebaseRelations view Signed-off-by: Ayan Sinha Mahapatra <[email protected]> --------- Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent a3a2a64 commit cb2d65e

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

scanpipe/filters.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ def filter(self, qs, value):
494494
("dwarf_included_paths", "dwarf_included_paths"),
495495
("dwarf_compiled_paths", "dwarf_compiled_paths"),
496496
("go_file_paths", "go_file_paths"),
497+
("elf_symbols", "Elf Symbols"),
498+
("macho_symbols", "Mach0 Symbols"),
499+
("winpe_symbols", "WinPE Symbols"),
500+
("rust_symbols", "Rust Symbols"),
497501
)
498502

499503

scanpipe/pipes/d2d_config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ class EcosystemConfig:
117117
ecosystem_option="Ruby",
118118
matchable_package_extensions=[".gem"],
119119
matchable_resource_extensions=[".rb"],
120-
deployed_resource_path_exclusions=["*checksums.yaml.gz*", "*metadata.gz*"],
120+
deployed_resource_path_exclusions=[
121+
"*checksums.yaml.gz*",
122+
"*metadata.gz*",
123+
"*data.tar.gz.sig",
124+
],
121125
),
122126
"Elf": EcosystemConfig(
123127
ecosystem_option="Elf",

scanpipe/templates/scanpipe/includes/pagination_header_relations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<span style="vertical-align: middle">
66
{{ paginator.count|intcomma }} relations
77
</span>
8-
<a href="{% url 'project_resources' project.slug %}?tag=to&relation_map_type=none" target="_blank" class="button is-small is-info is-outlined">
8+
<a href="{% url 'project_resources' project.slug %}?tag=to&relation_map_type=none&type=file" target="_blank" class="button is-small is-info is-outlined">
99
<span>Un-mapped <strong>to/</strong> resources</span>
1010
<span class="icon">
1111
<i class="fa-solid fa-external-link-alt"></i>
1212
</span>
1313
</a>
14-
<a href="{% url 'project_resources' project.slug %}?tag=from&relation_map_type=none" target="_blank" class="button is-small is-info is-outlined">
14+
<a href="{% url 'project_resources' project.slug %}?tag=from&relation_map_type=none&type=file" target="_blank" class="button is-small is-info is-outlined">
1515
<span>Un-mapped <strong>from/</strong> resources</span>
1616
<span class="icon">
1717
<i class="fa-solid fa-external-link-alt"></i>

scanpipe/tests/data/d2d/config/ecosystem_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"matchable_package_extensions": [".jar", ".war", ".gem", ".zip", ".tar.gz", ".tar.xz"],
44
"matchable_resource_extensions": [".map", ".js", ".mjs", ".ts", ".d.ts", ".jsx", ".tsx", ".css", ".scss", ".less", ".sass", ".soy",".class", ".rb"],
55
"doc_extensions": [".pdf", ".doc", ".docx", ".ppt", ".pptx", ".tex", ".odt", ".odp"],
6-
"deployed_resource_path_exclusions": ["*checksums.yaml.gz*", "*metadata.gz*"],
6+
"deployed_resource_path_exclusions": ["*checksums.yaml.gz*", "*metadata.gz*", "*data.tar.gz.sig"],
77
"devel_resource_path_exclusions": ["*/tests/*"],
88
"standard_symbols_to_exclude": [],
99
"source_symbol_extensions": []

0 commit comments

Comments
 (0)