pipecd icon indicating copy to clipboard operation
pipecd copied to clipboard

Add the way to access git repository by using Personal Access Token(PAT)

Open kevin-namba opened this issue 3 years ago • 1 comments

What would you like to be added: We would like to make the option to access repository by using Personal Access Token(PAT) in addition to using SSH key.

apiVersion: pipecd.dev/v1beta1
kind: Piped
spec:
  git:
     # sshKeyFile: {PATH _TO_SSH_KEY_FILE}
     personalAccessToken:
        userName: <user-name>
        userToken: <user-token>

Why is this needed: Now Pipecd uses SSH key to access repositories. But we can not control access policies to repositories when using SSH keys . We should use Github Personal Access Token instead of SSH key.

ex. fluxCD adopt PAT to access repositories. https://fluxcd.io/flux/get-started/

kevin-namba avatar Jan 06 '23 04:01 kevin-namba

🙋

sZma5a avatar Jul 10 '23 11:07 sZma5a