Git clone is failed with netrc setup

Hi!
Having a problem with git-clone step along with netrc gitlab authentication setup. git-clone failes with error:

remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.
remote: You can generate one at https://gitlab.com/personal_access_tokens

however authenticate-host-with-netrc is finished successfully.

Build log

Hello,

I’m not certain, but I think this may be the result of a bug with the Authenticate Host with .netrc where the permission are not set correctly. Permissions should be set to 600, but are set to 640 when the step generates the file.

Please try adding a script step and use ‘chmod’ to correct the permissions and see if that resolves the issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.