Skip to content

Update working_with_projects.md to fix SSH auth and clarify PAT scope

Dinesh Bolkensteyn requested to merge dbolkensteyn-master-patch-21730 into master

What does this MR do and why?

This MR clarifies the minimum scope needed for the Personal Access Token required by go get.

Additionally, it fixes a typo in a git config command which broke authentication.

Screenshots or screen recordings

Before:

> git config --global url."git@gitlab.com".insteadOf "https://gitlab.com"
> GOPRIVATE=gitlab.com/gitlab-org/secure/vulnerability-research/internal/litregex go get -v gitlab.com/gitlab-org/secure/vulnerability-research/internal/litregex

        fatal: 'git@gitlab.com/gitlab-org/secure/vulnerability-research/internal/litregex.git' does not appear to be a git repository
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.

After:

> git config --global url."git@gitlab.com:".insteadOf "https://gitlab.com/"
> GOPRIVATE=gitlab.com/gitlab-org/secure/vulnerability-research/internal/litregex go get -v gitlab.com/gitlab-org/secure/vulnerability-research/internal/litregex

go: added gitlab.com/gitlab-org/secure/vulnerability-research/internal/litregex v0.1.1

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports