diff --git a/action.py b/action.py index 351994b..5e3412f 100644 --- a/action.py +++ b/action.py @@ -492,8 +492,11 @@ def main(github_token, fail_on_alert, fail_on_alert_exclude_closed, disable_pr_c print(f"alerts step output:\n{step_output_json}") # Write the alert details to the step output - with open(os.environ["GITHUB_OUTPUT"], "a") as fh: - print(f"alerts={step_output_json}", file=fh) + # with open(os.environ["GITHUB_OUTPUT"], "a") as fh: + # print(f"alerts={step_output_json}", file=fh) + + print(f'"alerts={step_output_json}" >> "$GITHUB_OUTPUT"') + # print(f"echo alerts={step_output_json} >> $GITHUB_OUTPUT")