File tree 3 files changed +44
-15
lines changed
3 files changed +44
-15
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
+
12
13
steps :
13
- - uses : actions/checkout@v4
14
+ # Checkout the code
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v4
17
+
18
+ # Set up JDK 21
14
19
- name : Set up JDK 21
15
20
uses : actions/setup-java@v4
16
21
with :
17
22
java-version : ' 21'
18
23
distribution : ' temurin'
19
24
cache : maven
25
+
26
+ # Build all modules
20
27
- name : Build all modules
21
28
run : mvn -B package
22
- - name : Generate dependency graph
23
- run : mvn com.github.ferstl:depgraph-maven-plugin:graph
24
- - name : Update dependency graph
25
- uses : advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
26
29
30
+ # Generate dependency graph in JSON format
31
+ - name : Generate dependency graph in JSON
32
+ run : mvn com.github.ferstl:depgraph-maven-plugin:aggregate -DoutputFormat=json
33
+
34
+ # Debug JSON Dependency Graph
35
+ - name : Debug JSON Dependency Graph
36
+ run : cat target/dependency-graph.json || echo "Dependency graph is empty"
37
+
38
+ # List target directory for debugging
39
+ - name : List target directory
40
+ run : ls -la target
41
+
42
+ # Submit dependencies to GitHub Advanced Security
43
+ - name : Submit dependency graph
44
+ uses : advanced-security/maven-dependency-submission-action@v1
45
+ with :
46
+ dependency-graph-path : target/dependency-graph.json
47
+
48
+ # Debug Environment Variables
49
+ - name : Debug Environment
50
+ run : env
Original file line number Diff line number Diff line change 45
45
</plugin >
46
46
</plugins >
47
47
</pluginManagement >
48
-
48
+
49
49
<plugins >
50
50
<plugin >
51
51
<groupId >com.github.ferstl</groupId >
52
52
<artifactId >depgraph-maven-plugin</artifactId >
53
53
<version >4.0.3</version >
54
+ <executions >
55
+ <execution >
56
+ <goals >
57
+ <goal >aggregate</goal >
58
+ </goals >
59
+ </execution >
60
+ </executions >
61
+ <configuration >
62
+ <scope >compile</scope >
63
+ <includeParentProjects >true</includeParentProjects >
64
+ <includes >
65
+ <include >com.jep:*</include >
66
+ </includes >
67
+ </configuration >
54
68
</plugin >
55
69
</plugins >
56
70
</build >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments