Skip to content

Commit f069120

Browse files
committed
Fixed a typo when logging self-hosted runners which led to an exception when X-Raying repositories with self-hosted runners. Thanks to Fernando Arnaboldi for reporting it!
1 parent 2543703 commit f069120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitxray/xrays/workflows_xray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run(gx_context, gx_output):
6262
decoded_content = base64.b64decode(encoded_content).decode('utf-8').lower()
6363

6464
# https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners
65-
if "self-hosted" in decoded_content: gx_output.rlog(f"Workflow [{workflow.get('name')}] appears to be executing in a self-hosted runner: [{workflow.get('html_url')}]", rtype="workflows")
65+
if "self-hosted" in decoded_content: gx_output.r_log(f"Workflow [{workflow.get('name')}] appears to be executing in a self-hosted runner: [{workflow.get('html_url')}]", rtype="workflows")
6666

6767
# https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
6868
if any(a in decoded_content for a in ["pull_request_target","workflow_run","issue_comment","issue:"]):

0 commit comments

Comments
 (0)