Skip to content

Commit f272133

Browse files
exclude github folder from deploy resource
Signed-off-by: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
1 parent 8712d48 commit f272133

2 files changed

Lines changed: 79 additions & 1 deletion

File tree

how e323d10 --stat

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
commit e323d1044f283e654de745864db531236051cc80
2+
Author: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
3+
Date: Thu Dec 18 05:09:18 2025 +0530
4+
5+
Add .github/ exclusion to D2D mapping
6+
7+
Signed-off-by: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
8+
9+
diff --git a/scanpipe/pipes/d2d_config.py b/scanpipe/pipes/d2d_config.py
10+
index d965fea..232ed68 100644
11+
--- a/scanpipe/pipes/d2d_config.py
12+
+++ b/scanpipe/pipes/d2d_config.py
13+
@@ -80,7 +80,7 @@ ECOSYSTEM_CONFIGS = {
14+
".odt",
15+
".odp",
16+
],
17+
- deployed_resource_path_exclusions=["*.properties", "*.html"],
18+
+ deployed_resource_path_exclusions=["*.properties", "*.html", "*/.github/*"],
19+
),
20+
"Java": EcosystemConfig(
21+
ecosystem_option="Java",
22+
diff --git a/test_from/package.json b/test_from/package.json
23+
new file mode 100644
24+
index 0000000..e078130
25+
--- /dev/null
26+
+++ b/test_from/package.json
27+
@@ -0,0 +1 @@
28+
+{"name": "test-app", "version": "1.0.0"}
29+
diff --git a/test_from/src/main/app.js b/test_from/src/main/app.js
30+
new file mode 100644
31+
index 0000000..7946d15
32+
--- /dev/null
33+
+++ b/test_from/src/main/app.js
34+
@@ -0,0 +1 @@
35+
+console.log('Hello from development');
36+
diff --git a/test_from/src/main/utils.js b/test_from/src/main/utils.js
37+
new file mode 100644
38+
index 0000000..bc11d31
39+
--- /dev/null
40+
+++ b/test_from/src/main/utils.js
41+
@@ -0,0 +1 @@
42+
+export function helper() { return true; }
43+
diff --git a/test_to/.github/README.md b/test_to/.github/README.md
44+
new file mode 100644
45+
index 0000000..2063509
46+
--- /dev/null
47+
+++ b/test_to/.github/README.md
48+
@@ -0,0 +1 @@
49+
+GitHub workflows and configs
50+
diff --git a/test_to/.github/workflows/ci.yml b/test_to/.github/workflows/ci.yml
51+
new file mode 100644
52+
index 0000000..b954009
53+
--- /dev/null
54+
+++ b/test_to/.github/workflows/ci.yml
55+
@@ -0,0 +1,2 @@
56+
+name: CI
57+
+run: npm test
58+
diff --git a/test_to/dist/app.js b/test_to/dist/app.js
59+
new file mode 100644
60+
index 0000000..a981b69
61+
--- /dev/null
62+
+++ b/test_to/dist/app.js
63+
@@ -0,0 +1 @@
64+
+console.log('Hello from deployment');
65+
diff --git a/test_to/dist/utils.js b/test_to/dist/utils.js
66+
new file mode 100644
67+
index 0000000..bc11d31
68+
--- /dev/null
69+
+++ b/test_to/dist/utils.js
70+
@@ -0,0 +1 @@
71+
+export function helper() { return true; }
72+
diff --git a/test_to/package.json b/test_to/package.json
73+
new file mode 100644
74+
index 0000000..e078130
75+
--- /dev/null
76+
+++ b/test_to/package.json
77+
@@ -0,0 +1 @@
78+
+{"name": "test-app", "version": "1.0.0"}

scanpipe/pipes/d2d_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class EcosystemConfig:
8080
".odt",
8181
".odp",
8282
],
83-
deployed_resource_path_exclusions=["*.properties", "*.html"],
83+
deployed_resource_path_exclusions=["*.properties", "*.html","*/.github/*"],
8484
),
8585
"Java": EcosystemConfig(
8686
ecosystem_option="Java",

0 commit comments

Comments
 (0)