]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fuzzer corpus pushback: Avoid stripping of trailing newline by environment (#4323)
authorTerry Burton <tez@terryburton.co.uk>
Thu, 2 Dec 2021 19:06:41 +0000 (19:06 +0000)
committerGitHub <noreply@github.com>
Thu, 2 Dec 2021 19:06:41 +0000 (13:06 -0600)
.github/workflows/ci-scheduled-fuzzing.yml
scripts/ci/commit_lfs_file_update.py

index 8eb83fadfb2f8cdda410e7ef032db1343441400d..a4d52185215c00abc805b907b5b4d45e598ab033 100644 (file)
@@ -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:
index 4a088df1d5871cac0385c87293222b3c6b2d6369..859b541514e66264d3990ea38504c40eaa35f051 100644 (file)
@@ -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)