This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch fuzzing
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/fuzzing by this push:
     new a7bf04004d Report the commit ID
a7bf04004d is described below

commit a7bf04004dd8b098330c9d089828c7fc6def968e
Author: Volkan Yazıcı <vol...@yazi.ci>
AuthorDate: Mon Sep 2 12:20:06 2024 +0200

    Report the commit ID
---
 oss-fuzz-build.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/oss-fuzz-build.sh b/oss-fuzz-build.sh
index 6087f8959a..9c8ded8e2f 100755
--- a/oss-fuzz-build.sh
+++ b/oss-fuzz-build.sh
@@ -52,6 +52,9 @@ mkdir -p "$outputDir"
 # Switch to the script directory
 cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
 
+# Record the Git commit ID
+commitId=$(git rev-parse HEAD)
+
 # To contain all Maven dependencies under `$outputDir`, explicitly provide the 
Maven local repository.
 # `.`-prefixed files are not copied by OSS-Fuzz, don't use them!
 export MAVEN_OPTS="-Dmaven.repo.local=$outputDir/m2"
@@ -121,6 +124,9 @@ for module in *-fuzz-test; do
 
 # OSS-Fuzz detects fuzzers by checking the presence of the magical 
"LLVMFuzzerTestOneInput" word, hence this line.
 
+# Report the build
+echo "Produced using the commit ID: $commitId"
+
 # Switch to the script directory
 cd -- "\$(dirname -- "\${BASH_SOURCE[0]}")"
 

Reply via email to