Skip to content

Commit 50ff158

Browse files
author
Michael Long
committed
minor refactor
1 parent a3c68d9 commit 50ff158

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint/entrypoint/pkg_vuln.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,12 @@ def sort_vulns(vulns):
422422

423423

424424
def post_github_step_summary(markdown):
425-
job_summary_file = "/tmp/inspector.md"
425+
step_summary_path = "/tmp/inspector.md"
426426
if os.getenv('GITHUB_ACTIONS'):
427-
job_summary_file = os.environ["GITHUB_STEP_SUMMARY"]
427+
step_summary_path = os.environ["GITHUB_STEP_SUMMARY"]
428428

429429
try:
430-
with open(job_summary_file, "a") as f:
430+
with open(step_summary_path, "a") as f:
431431
f.write(markdown)
432432
except Exception as e:
433433
logging.error(e)

0 commit comments

Comments
 (0)