Comments (5)
@ferrarimarco introduced this regression with this change:
6fd6830#diff-0b89e6e14353371aacf69d4b9067d4481dd99c6994409b32e3b906c69d478c21L147-L149 (working code left, regression right).
from super-linter.
@megamorf You are setting GITHUB_DOMAIN
, which is for the domain of your installation, not for the server URL, as you can see from the README.
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 GITHUB_DOMAIN
and GITHUB_CUSTOM_API_URL
in a completely independent way, which is likely error prone.
The current implementation works if you set GITHUB_DOMAIN
to your domain and not to github.server_url
.
This is an enhancement request, rather than a bug because support for github.server_url
was never implemented in the first place.
Happy to review a PR for this.
from super-linter.
At least you can set GITHUB_API_URL: ${{ github.api_url }}
which should make the API call work, but the resulting status check would have the wrong target URL because GITHUB_DOMAIN
points to the wrong link. This, provided that the GitHub API doesn't reject invalid target links for status checks. Given that we can set GITHUB_API_URL
in the current implementation, it probably makes sense to have something comparable for the GitHub server URL.
I think we likely need to:
- Expose the
GITHUB_SERVER_URL
variable because we cannot useGITHUB_DOMAIN
for this.GITHUB_DOMAIN
is a convenience variable to automatically build the URL of the GitHub instance and the URL of its API server. Maybe we should make this clearer in the README. - Validate all these variables to handle corner cases, such as when the user sets
GITHUB_DOMAIN
and any ofGITHUB_SERVER_URL
andGITHUB_API_URL
, or both.
from super-linter.
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 github.server_url
) just to adhere to what appears to be arbitrarily chosen input requirements.
server_url
is part of the github
context for both github.com and GHES. So I'd very much be in favour of introducing support for those built-in variables.
Also, for transparency, in our case the following two context variables are not pointing to different domains:
github.server_url: https://git.foo.contoso.com
github.api_url: https://git.foo.contoso.com/api/v3
from super-linter.
I think we likely need to:
- Expose the
GITHUB_SERVER_URL
variable because we cannot useGITHUB_DOMAIN
for this.GITHUB_DOMAIN
is a convenience variable to automatically build the URL of the GitHub instance and the URL of its API server. Maybe we should make this clearer in the README.- Validate all these variables to handle corner cases, such as when the user sets
GITHUB_DOMAIN
and any ofGITHUB_SERVER_URL
andGITHUB_API_URL
, or both.
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 GITHUB_SERVER_URL
that removes and re-adds the schema as a temporary workaround until we're clear on how the new input handling looks like? That way affected users like us can profit from fancy new v6 features while work is ongoing on improving the implementation and documentation.
from super-linter.
Related Issues (20)
- Support goreleaser check
- `macos-14` runner is unknown error HOT 3
- Remove color code from super-linter stdout and logfile when not needed HOT 11
- JSCPD Failures on Minor Update v6.3.1 --> v6.4.0 HOT 2
- Prevent Failures from New Linters in Minor Releases HOT 7
- Unable to remove .ruff_cache folder HOT 3
- Support Android linter HOT 1
- Behavior not supported, please either only include (VALIDATE=true) or exclude (VALIDATE=false) linters, but not both HOT 7
- Failed to deploy to production
- Superlinter workflow fail to download module error. HOT 11
- JSCPR yielding errors on files in excluded directory HOT 3
- Make the output of each linter available to users for further processing HOT 2
- v6 failing for missing default branch HOT 9
- Thank you super-linter contributors (2024-04-01..2024-04-30) HOT 1
- Missing Scope in GITHUB_ACTIONS Checks HOT 1
- Update Golang linter configuration to avoid the deprecated `linters.govet.check-shadowing` option HOT 1
- Don't require the full Git history HOT 4
- Accept an option to dump log output to github Job Summaries HOT 5
- Check: CKV2_GHA_1: "Ensure top-level permissions are not set to write-all" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-linter.