New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support configuring the GitHub server URL #5572
Comments
@ferrarimarco introduced this regression with this change: |
@megamorf You are setting The commit you reference fixed a few inconsistencies about variables not behaving as described in the documentation, and it also disallowed some confusing corner cases that allowed you to set The current implementation works if you set This is an enhancement request, rather than a bug because support for Happy to review a PR for this. |
At least you can set I think we likely need to:
|
As it is now, it would require a GHES instance with +20.000 users to needlessly introduce a workaround across all workflows (stripping the schema from
Also, for transparency, in our case the following two context variables are not pointing to different domains:
|
Yeah, that sounds like the most reasonable approach. I guess we first need to compile the different allowed/forbidden states and then refactor the logic accordingly. Let me know how I can help here to remove the blocker. Edit: Can we put in the step for the |
Is there an existing issue for this?
Current Behavior
We started the upgrade from v5 to v6 today - specifically
ghcr.io/super-linter/super-linter:slim-v6.4.1
. However in our GHES environment the super-linter run fails with the error below.Expected Behavior
The built-in
github
context variables should be supported by the action: https://docs.github.com/en/[email protected]/actions/learn-github-actions/contexts#github-contextThe documentation says:
It does not make sense as a big corporate customer to reinvent the wheel. In the URL building logic of the Action a condition needs to be added to strip an extra schema from the input so that the
github.server_url
variable can be handled correctly.Super-Linter version
Relevant log output
Super-Linter initialization 2024-04-25 15:43:00 [INFO] Command output when running linters: ------ BASH GITHUB_ACTIONS GITLEAKS JSON MARKDOWN YAML ------ 2024-04-25 15:43:00 [INFO] ---------------------------------------------- 2024-04-25 15:43:00 [INFO] ---------------------------------------------- Notice: 25 15:43:00 [NOTICE] Successfully linted BASH 2024-04-25 15:43:00 [INFO] Failed to call GitHub Status API: curl: (6) Could not resolve host: api.https Notice: 25 15:43:00 [NOTICE] Successfully linted GITHUB_ACTIONS 2024-04-25 15:43:00 [INFO] Failed to call GitHub Status API: curl: (6) Could not resolve host: api.https Error: -25 15:43:00 [ERROR] Errors found in GITLEAKS 2024-04-25 15:43:00 [INFO] Failed to call GitHub Status API: curl: (6) Could not resolve host: api.https Notice: 25 15:43:00 [NOTICE] Successfully linted JSON 2024-04-25 15:43:00 [INFO] Failed to call GitHub Status API: curl: (6) Could not resolve host: api.https Notice: 25 15:43:00 [NOTICE] Successfully linted MARKDOWN 2024-04-25 15:43:00 [INFO] Failed to call GitHub Status API: curl: (6) Could not resolve host: api.https Notice: 25 15:43:01 [NOTICE] Successfully linted YAML 2024-04-25 15:43:01 [INFO] Failed to call GitHub Status API: curl: (6) Could not resolve host: api.https Error: -25 15:43:01 [ERROR] Super-linter detected linting errors
I ran the workflow in debug mode to see what exactly is going on and it seems that you are incorrectly building the URL paths:
Steps To Reproduce
The Action itself is called as follows and has been working fine with
v5
- switching to v6.4.1 fails with the linked error.Anything else?
No response
The text was updated successfully, but these errors were encountered: