Skip to content

[Bug]: Network error while creating PR decoration issue for Github Enterprise #293

@cmotsn

Description

@cmotsn

Contact Details

No response

What happened?

Follow-up on #273, trying to get PR comment on our GHES.
Using the action checkmarx/ast-github-action@2.3.28, with the following parameter
utils_params: "--code-repository-url ${{ github.server_url }}",
now the call is made to the correct URL on the GHES server, but fails with the following error:

Creating PR decoration for scan ID: XXXXXXXXXXX
Failed creating github PR Decoration: CODE: 0, I/O error on GET request for "https://github.mycompany.com/api/v3/repos/ORG/REPO/pulls/YX": github.mycompany.com: No address associated with hostname

I have run a Docker image with curl test to that exact same URL from GitHub action, and there is no network error (I also ran lookup command from inside a Docker image, it also succeeds):

      - name: DEBUG docker wget
        run: docker run --rm curlimages/curl:8.17.0 -L -v https://github.mycompany.com/api/v3/repos/ORG/REPO/pulls/YX

I suspect an issue with the configuration of the Checkmarx image at this point.

Version

2.3.28

Operating System & Version

Ubuntu 22.04

Specify Other OS Version

i'm using an ubuntu self-hosted runner

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions