TS
06/16/2022, 10:12 PMDennis (Cerbos)
TS
06/16/2022, 10:16 PMDennis (Cerbos)
<https://github.com/cerbos/sample-policies.git>
TS
06/16/2022, 10:25 PMDennis (Cerbos)
TS
06/16/2022, 10:28 PMDennis (Cerbos)
TS
06/16/2022, 10:31 PMDennis (Cerbos)
TS
06/16/2022, 10:32 PMhttps:
username: "my-github-username"
password: ${GITHUB_TOKEN}
isn't?Dennis (Cerbos)
My repo is private and is inside an organizationIs it on GitHub?
TS
06/16/2022, 10:39 PMDennis (Cerbos)
https:
username: "my-github-username"
password: ${GITHUB_TOKEN}
and
https:
username: ${GITHUB_TOKEN}
password:
TS
06/16/2022, 10:42 PMDennis (Cerbos)
If you want to use a PAT to access resources owned by an organization that uses SAML SSO, you must authorize the PAT. For more information, see “About authentication with SAML single sign-on” and “Authorizing a personal access token for use with SAML single sign-on” in the GitHub Enterprise Cloud documentation.from here https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
https:
username: "anything here but an empty string"
password: ${GITHUB_TOKEN}
TS
06/16/2022, 11:03 PMDennis (Cerbos)
TS
06/16/2022, 11:11 PMDennis (Cerbos)
TS
06/16/2022, 11:33 PMDennis (Cerbos)
TS
06/16/2022, 11:46 PMfailed to get repo HEAD: reference not found
The same issueDennis (Cerbos)
.git
?TS
06/16/2022, 11:49 PMDennis (Cerbos)
./_examples/clone/auth/basic/access_token
run
go run main.go <url> <directory> <github_access_token>
TS
06/17/2022, 12:11 AMgo run main.go '<https://github.com/my-org/repo.git>' ./repo/ 'my-token'
It worked correctlyDennis (Cerbos)
TS
06/17/2022, 12:17 AMDennis (Cerbos)
TS
06/17/2022, 12:21 AMDennis (Cerbos)
TS
06/17/2022, 12:29 AMDennis (Cerbos)
TS
06/17/2022, 12:32 AMDennis (Cerbos)
TS
06/17/2022, 12:44 AMDennis (Cerbos)
TS
06/17/2022, 12:51 AMDennis (Cerbos)