Skip to content

Commit 3bd4035

Browse files
committed
chore: update CodeQL workflow and cleanup dist.sh file
Upgraded CodeQL GitHub Actions to v3 for improved security and features. Enhanced .gitignore and pom.xml to exclude and clean up dist.sh files during build and packaging. Removed unused hugegraph-struct dependency from hugegraph-store. Updated NOTICE copyright year to 2025.
1 parent cfe3333 commit 3bd4035

File tree

6 files changed

+18
-11
lines changed

6 files changed

+18
-11
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ jobs:
4343
4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
5050
# By default, queries listed here will override any specified in a config file.
5151
# Prefix the list here with "+" to use these queries and those in the config file.
5252
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5353

54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
71+
uses: github/codeql-action/analyze@v3

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ output/
6666
tree.txt
6767
*.versionsBackup
6868
.flattened-pom.xml
69+
**/dependency-reduced-pom.xml
70+
install-dist/dist.sh
6971

7072

7173
# eclipse ignore

hugegraph-store/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@
8585
<artifactId>hg-store-transfer</artifactId>
8686
<version>${project.version}</version>
8787
</dependency>
88-
<dependency>
89-
<groupId>org.apache.hugegraph</groupId>
90-
<artifactId>hugegraph-struct</artifactId>
91-
<version>${project.version}</version>
92-
</dependency>
9388
<dependency>
9489
<groupId>org.apache.logging.log4j</groupId>
9590
<artifactId>log4j-slf4j-impl</artifactId>

install-dist/pom.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@
6060
md5sum $root_path/target/${final.name}.tar.gz
6161
echo -n "hugegraph tar.gz available at: "
6262
echo "$root_path/target/${final.name}.tar.gz"
63-
rm -f ${project.basedir}/dist.sh
6463
</echo>
6564
<exec executable="${shell-executable}" dir="${project.basedir}" failonerror="true">
6665
<arg line="./dist.sh"/>
6766
</exec>
67+
<!-- Ensure dist.sh is always deleted after execution -->
68+
<delete file="${project.basedir}/dist.sh" quiet="true"/>
6869
</tasks>
6970
</configuration>
7071
</execution>
@@ -84,6 +85,14 @@
8485
<fileset>
8586
<directory>${project.basedir}/../${final.name}</directory>
8687
</fileset>
88+
<!-- Clean up dist.sh if it exists -->
89+
<fileset>
90+
<directory>${project.basedir}</directory>
91+
<includes>
92+
<include>dist.sh</include>
93+
</includes>
94+
<followSymlinks>false</followSymlinks>
95+
</fileset>
8796
</filesets>
8897
</configuration>
8998
</plugin>

install-dist/release-docs/NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache HugeGraph(incubating)
2-
Copyright 2022-2024 The Apache Software Foundation
2+
Copyright 2022-2025 The Apache Software Foundation
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
<!-- Maven -->
208208
<exclude>.repository/**</exclude>
209209
<exclude>**/.flattened-pom.xml</exclude>
210+
<exclude>**/install-dist/dist.sh</exclude>
210211
<!-- Test generated data -->
211212
<exclude>**/rocksdb-*/**</exclude>
212213
<exclude>**/hbase-*/**</exclude>

0 commit comments

Comments
 (0)