infra: add proj name to env for fuzz introspector (#7856)

* infra: add proj name to env for fuzz introspector

Depends on https://github.com/ossf/fuzz-introspector/pull/327

Ref: https://github.com/ossf/fuzz-introspector/issues/317

* lint fix

* update introspector commit

Co-authored-by: Navidem <navid.emamdoost@gmail.com>
This commit is contained in:
DavidKorczynski 2022-06-14 21:26:06 +01:00 committed by GitHub
parent bc64e722b0
commit a972a93b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -240,6 +240,7 @@ if [ "$SANITIZER" = "introspector" ]; then
fi
# Use the just-generated correlation file
REPORT_ARGS="$REPORT_ARGS --correlation_file=exe_to_fuzz_introspector_logs.yaml"
REPORT_ARGS="$REPORT_ARGS --name=$PROJECT_NAME"
python3 /fuzz-introspector/post-processing/main.py report $REPORT_ARGS
cp -rf $SRC/inspector $OUT/inspector

View File

@ -36,7 +36,7 @@ RUN apt-get update && apt-get install -y wget sudo && \
RUN apt-get update && apt-get install -y git && \
git clone https://github.com/ossf/fuzz-introspector.git fuzz-introspector && \
cd fuzz-introspector && \
git checkout fd7a9ed71549bc4b7bf9dcca47b1b3fcc58ba791 && \
git checkout 38e75235115a478fa924535f94ccbc8883f166f9 && \
apt-get remove --purge -y git
COPY checkout_build_install_llvm.sh /root/

View File

@ -639,9 +639,8 @@ def build_fuzzers_impl( # pylint: disable=too-many-arguments,too-many-locals,to
else:
logging.info('Keeping existing build artifacts as-is (if any).')
env = [
'FUZZING_ENGINE=' + engine,
'SANITIZER=' + sanitizer,
'ARCHITECTURE=' + architecture,
'FUZZING_ENGINE=' + engine, 'SANITIZER=' + sanitizer,
'ARCHITECTURE=' + architecture, 'PROJECT_NAME=' + project.name
]
_add_oss_fuzz_ci_if_needed(env)