From: Terry Burton Date: Thu, 2 Dec 2021 19:06:41 +0000 (+0000) Subject: Fuzzer corpus pushback: Avoid stripping of trailing newline by environment (#4323) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38222db1ace7f0a262a13df3fda85460996da5a7;p=thirdparty%2Ffreeradius-server.git Fuzzer corpus pushback: Avoid stripping of trailing newline by environment (#4323) --- diff --git a/.github/workflows/ci-scheduled-fuzzing.yml b/.github/workflows/ci-scheduled-fuzzing.yml index 8eb83fadfb2..a4d52185215 100644 --- a/.github/workflows/ci-scheduled-fuzzing.yml +++ b/.github/workflows/ci-scheduled-fuzzing.yml @@ -251,7 +251,7 @@ jobs: git add "$FILE" OID="$(git lfs ls-files -l -I "$FILE" | cut -f1 -d ' ')" git lfs push --object-id origin "$OID" - export CONTENTS="$(git show ":$FILE")" + export CONTENTS="$(git show ":$FILE" | base64)" python3 scripts/ci/commit_lfs_file_update.py fi env: diff --git a/scripts/ci/commit_lfs_file_update.py b/scripts/ci/commit_lfs_file_update.py index 4a088df1d58..859b541514e 100644 --- a/scripts/ci/commit_lfs_file_update.py +++ b/scripts/ci/commit_lfs_file_update.py @@ -4,6 +4,7 @@ # import os +import base64 from github import Github @@ -12,7 +13,7 @@ branch_env = os.environ["GITHUB_REF"] token_env = os.environ["GITHUB_TOKEN"] filename = os.environ["FILE"] -contents = os.environ["CONTENTS"] +contents = base64.b64decode(os.environ["CONTENTS"]) print("About to commit update of " + filename + " to " + repo_env + ":" + branch_env)