Closed schorlton closed 2 years ago
What if you add LOG_LEVEL: DEBUG
in your .mega-linter.yml file ?
Gitlab project Id is found using CI env var CI_PROJECT_ID
, is it set ?
I haven't changed any of the Gitlab default variables and am using the standard Gitlab template as per the docs. If I enable debugging, I see that my CI_PROJECT_ID
is a large int
. I have no idea if this is secure so I've simulated what it looks like in the log:
CI_PROJECT_ID=12345678
I'm on it :)
@schorlton meanwhile you can already follow these instructions to avoid the issue :) ( I assume you are on a private or self-hosted repo ^^ )
@schorlton should be ok wuth beta now :) ( if you add additional config)
Thanks @nvuillam ! I see it's also now been released in 5.7.0
:partying_face:
Just a question - is there any way to set this up without using my personal API token on a group project? I could create another account, but even then - giving it API access seems like a lot of permissions and I wonder if Gitlab has an intrinsic mechanism for things like this? (You've probably investigated)
@schorlton it is currently being released, so available in some dozens of minutes :)
Contrary to Github acctions, Gitlab CI architecture makes the current job token almost useless... so to post a comment on the MR, it requires a defined AccessToken
As it is defined in your team repository, it means that only members of your team can theoritically access it. If you select only "api" scope, it restricts what they could do with such token, but if it's more reassuring for you, you can create another Gitlab account :)
@schorlton maybe you can try with a project access token ? :) At least it would restrict the access to the current project ^^
https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html
Cool, thanks!
Hi @nvuillam,
Bumped our version to beta to fix https://github.com/megalinter/megalinter/issues/1207 Now hitting a Gitlab reporter error on the public Gitlab runners, which I suspect is related to this: https://github.com/megalinter/megalinter/commit/b1d22143d8b3c1ab128dcc7ecbd1bbe963cb060a
Don't know if this is a known bug in the beta so figured I'd just report before release. Running:
megalinter/megalinter@sha256:2f80b2d2911f281dbdc4a48ed76ab4c1fa21782190cc980853eb2b705819b7ad
Thanks for as always for your help!