From f272133226cfa7a2a73e2e4268fccd545a8d2a0f Mon Sep 17 00:00:00 2001 From: Aryan-SINGH-GIT Date: Thu, 18 Dec 2025 05:37:05 +0530 Subject: [PATCH 1/4] exclude github folder from deploy resource Signed-off-by: Aryan-SINGH-GIT --- how e323d10 --stat | 78 ++++++++++++++++++++++++++++++++++++ scanpipe/pipes/d2d_config.py | 2 +- 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 how e323d10 --stat diff --git a/how e323d10 --stat b/how e323d10 --stat new file mode 100644 index 0000000000..a91648e3db --- /dev/null +++ b/how e323d10 --stat @@ -0,0 +1,78 @@ +commit e323d1044f283e654de745864db531236051cc80 +Author: Aryan-SINGH-GIT +Date: Thu Dec 18 05:09:18 2025 +0530 + + Add .github/ exclusion to D2D mapping + + Signed-off-by: Aryan-SINGH-GIT + +diff --git a/scanpipe/pipes/d2d_config.py b/scanpipe/pipes/d2d_config.py +index d965fea..232ed68 100644 +--- a/scanpipe/pipes/d2d_config.py ++++ b/scanpipe/pipes/d2d_config.py +@@ -80,7 +80,7 @@ ECOSYSTEM_CONFIGS = { + ".odt", + ".odp", + ], +- deployed_resource_path_exclusions=["*.properties", "*.html"], ++ deployed_resource_path_exclusions=["*.properties", "*.html", "*/.github/*"], + ), + "Java": EcosystemConfig( + ecosystem_option="Java", +diff --git a/test_from/package.json b/test_from/package.json +new file mode 100644 +index 0000000..e078130 +--- /dev/null ++++ b/test_from/package.json +@@ -0,0 +1 @@ ++{"name": "test-app", "version": "1.0.0"}  +diff --git a/test_from/src/main/app.js b/test_from/src/main/app.js +new file mode 100644 +index 0000000..7946d15 +--- /dev/null ++++ b/test_from/src/main/app.js +@@ -0,0 +1 @@ ++console.log('Hello from development');  +diff --git a/test_from/src/main/utils.js b/test_from/src/main/utils.js +new file mode 100644 +index 0000000..bc11d31 +--- /dev/null ++++ b/test_from/src/main/utils.js +@@ -0,0 +1 @@ ++export function helper() { return true; }  +diff --git a/test_to/.github/README.md b/test_to/.github/README.md +new file mode 100644 +index 0000000..2063509 +--- /dev/null ++++ b/test_to/.github/README.md +@@ -0,0 +1 @@ ++GitHub workflows and configs  +diff --git a/test_to/.github/workflows/ci.yml b/test_to/.github/workflows/ci.yml +new file mode 100644 +index 0000000..b954009 +--- /dev/null ++++ b/test_to/.github/workflows/ci.yml +@@ -0,0 +1,2 @@ ++name: CI ++run: npm test  +diff --git a/test_to/dist/app.js b/test_to/dist/app.js +new file mode 100644 +index 0000000..a981b69 +--- /dev/null ++++ b/test_to/dist/app.js +@@ -0,0 +1 @@ ++console.log('Hello from deployment');  +diff --git a/test_to/dist/utils.js b/test_to/dist/utils.js +new file mode 100644 +index 0000000..bc11d31 +--- /dev/null ++++ b/test_to/dist/utils.js +@@ -0,0 +1 @@ ++export function helper() { return true; }  +diff --git a/test_to/package.json b/test_to/package.json +new file mode 100644 +index 0000000..e078130 +--- /dev/null ++++ b/test_to/package.json +@@ -0,0 +1 @@ ++{"name": "test-app", "version": "1.0.0"}  diff --git a/scanpipe/pipes/d2d_config.py b/scanpipe/pipes/d2d_config.py index d965feae84..3dffd1841c 100644 --- a/scanpipe/pipes/d2d_config.py +++ b/scanpipe/pipes/d2d_config.py @@ -80,7 +80,7 @@ class EcosystemConfig: ".odt", ".odp", ], - deployed_resource_path_exclusions=["*.properties", "*.html"], + deployed_resource_path_exclusions=["*.properties", "*.html","*/.github/*"], ), "Java": EcosystemConfig( ecosystem_option="Java", From 2eed5f9d637c9556a0e721c6485ec0e4c1b00eca Mon Sep 17 00:00:00 2001 From: Aryan-SINGH-GIT Date: Thu, 18 Dec 2025 05:41:17 +0530 Subject: [PATCH 2/4] removing unnecessary git stat Signed-off-by: Aryan-SINGH-GIT --- how e323d10 --stat | 78 ---------------------------------------------- 1 file changed, 78 deletions(-) delete mode 100644 how e323d10 --stat diff --git a/how e323d10 --stat b/how e323d10 --stat deleted file mode 100644 index a91648e3db..0000000000 --- a/how e323d10 --stat +++ /dev/null @@ -1,78 +0,0 @@ -commit e323d1044f283e654de745864db531236051cc80 -Author: Aryan-SINGH-GIT -Date: Thu Dec 18 05:09:18 2025 +0530 - - Add .github/ exclusion to D2D mapping - - Signed-off-by: Aryan-SINGH-GIT - -diff --git a/scanpipe/pipes/d2d_config.py b/scanpipe/pipes/d2d_config.py -index d965fea..232ed68 100644 ---- a/scanpipe/pipes/d2d_config.py -+++ b/scanpipe/pipes/d2d_config.py -@@ -80,7 +80,7 @@ ECOSYSTEM_CONFIGS = { - ".odt", - ".odp", - ], -- deployed_resource_path_exclusions=["*.properties", "*.html"], -+ deployed_resource_path_exclusions=["*.properties", "*.html", "*/.github/*"], - ), - "Java": EcosystemConfig( - ecosystem_option="Java", -diff --git a/test_from/package.json b/test_from/package.json -new file mode 100644 -index 0000000..e078130 ---- /dev/null -+++ b/test_from/package.json -@@ -0,0 +1 @@ -+{"name": "test-app", "version": "1.0.0"}  -diff --git a/test_from/src/main/app.js b/test_from/src/main/app.js -new file mode 100644 -index 0000000..7946d15 ---- /dev/null -+++ b/test_from/src/main/app.js -@@ -0,0 +1 @@ -+console.log('Hello from development');  -diff --git a/test_from/src/main/utils.js b/test_from/src/main/utils.js -new file mode 100644 -index 0000000..bc11d31 ---- /dev/null -+++ b/test_from/src/main/utils.js -@@ -0,0 +1 @@ -+export function helper() { return true; }  -diff --git a/test_to/.github/README.md b/test_to/.github/README.md -new file mode 100644 -index 0000000..2063509 ---- /dev/null -+++ b/test_to/.github/README.md -@@ -0,0 +1 @@ -+GitHub workflows and configs  -diff --git a/test_to/.github/workflows/ci.yml b/test_to/.github/workflows/ci.yml -new file mode 100644 -index 0000000..b954009 ---- /dev/null -+++ b/test_to/.github/workflows/ci.yml -@@ -0,0 +1,2 @@ -+name: CI -+run: npm test  -diff --git a/test_to/dist/app.js b/test_to/dist/app.js -new file mode 100644 -index 0000000..a981b69 ---- /dev/null -+++ b/test_to/dist/app.js -@@ -0,0 +1 @@ -+console.log('Hello from deployment');  -diff --git a/test_to/dist/utils.js b/test_to/dist/utils.js -new file mode 100644 -index 0000000..bc11d31 ---- /dev/null -+++ b/test_to/dist/utils.js -@@ -0,0 +1 @@ -+export function helper() { return true; }  -diff --git a/test_to/package.json b/test_to/package.json -new file mode 100644 -index 0000000..e078130 ---- /dev/null -+++ b/test_to/package.json -@@ -0,0 +1 @@ -+{"name": "test-app", "version": "1.0.0"}  From 40095c984f770b0424065ba5353278cd2d023aed Mon Sep 17 00:00:00 2001 From: Aryan-SINGH-GIT Date: Thu, 18 Dec 2025 05:52:01 +0530 Subject: [PATCH 3/4] reformat file Signed-off-by: Aryan-SINGH-GIT --- scanpipe/pipes/d2d_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanpipe/pipes/d2d_config.py b/scanpipe/pipes/d2d_config.py index 3dffd1841c..232ed6804c 100644 --- a/scanpipe/pipes/d2d_config.py +++ b/scanpipe/pipes/d2d_config.py @@ -80,7 +80,7 @@ class EcosystemConfig: ".odt", ".odp", ], - deployed_resource_path_exclusions=["*.properties", "*.html","*/.github/*"], + deployed_resource_path_exclusions=["*.properties", "*.html", "*/.github/*"], ), "Java": EcosystemConfig( ecosystem_option="Java", From 1258a92f143f25bf8bcf41545e5d2a2ef7d5e11c Mon Sep 17 00:00:00 2001 From: Aryan-SINGH-GIT Date: Thu, 18 Dec 2025 06:01:23 +0530 Subject: [PATCH 4/4] adding github in deployed_resource_path_exclusions Signed-off-by: Aryan-SINGH-GIT --- scanpipe/tests/data/d2d/config/ecosystem_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanpipe/tests/data/d2d/config/ecosystem_config.json b/scanpipe/tests/data/d2d/config/ecosystem_config.json index c152ea85b6..e920b6672d 100644 --- a/scanpipe/tests/data/d2d/config/ecosystem_config.json +++ b/scanpipe/tests/data/d2d/config/ecosystem_config.json @@ -3,7 +3,7 @@ "matchable_package_extensions": [".jar", ".war", ".gem", ".zip", ".tar.gz", ".tar.xz"], "matchable_resource_extensions": [".map", ".js", ".mjs", ".ts", ".d.ts", ".jsx", ".tsx", ".css", ".scss", ".less", ".sass", ".soy",".class", ".rb"], "doc_extensions": [".pdf", ".doc", ".docx", ".ppt", ".pptx", ".tex", ".odt", ".odp"], - "deployed_resource_path_exclusions": ["*META-INF/*", "*/module-info.class", "*/OSGI-INF/*.xml", "*/OSGI-INF/*.json", "*spring-configuration-metadata.json", "*checksums.yaml.gz*", "*metadata.gz*", "*data.tar.gz.sig", "*.properties", "*.html"], + "deployed_resource_path_exclusions": ["*META-INF/*", "*/module-info.class", "*/OSGI-INF/*.xml", "*/OSGI-INF/*.json", "*spring-configuration-metadata.json", "*checksums.yaml.gz*", "*metadata.gz*", "*data.tar.gz.sig", "*.properties", "*.html", "*/.github/*"], "devel_resource_path_exclusions": ["*/tests/*"], "standard_symbols_to_exclude": [], "source_symbol_extensions": []