*   SRC_URI = 
"git://${COMPANY_GIT_REPO}/path/to/project.git;protocol=https;user=token_name:${TOKEN}"
  *   The https+Token was working fine with Dunfell, now I have ported this 
recipe to kirkstone but it is not working and I get this error
  *   fatal: could not read Password for 'https://git@COMPANY_GIT_REPO': No 
such device or address

 Finally, something I might be able to contribute with.

  1.  Do not put ever any credentials to any recipes. That’s not the right 
place for them and they will leak.
  2.  Credentials are a build machine configuration issue. You can use git 
redirects for this purpose.

This type of thing is only required for private repositories typically, here is 
an example for a GitHub action

https://github.com/PelionIoT/actions

that does it. But, essentially it boils down to configuring git:



          git config --global user.name "Your BOT"

          git config --global user.email y...@email.com<mailto:y...@email.com>

          git config --global url.https://${{ inputs.github_token 
}}@github.com/<https://$%7b%7b%20inputs.github_token%20%7d...@github.com/>.insteadOf
 g...@github.com:<mailto:g...@github.com:>

          git config --global url.https://${{ inputs.github_token 
}}@github<https://$%7b%7b%20inputs.github_token%20%7d%7d@github>.insteadOf 
https://github

I hope this helps.



Best Regards,



Janne Kiiskilä
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62969): https://lists.yoctoproject.org/g/yocto/message/62969
Mute This Topic: https://lists.yoctoproject.org/mt/102079282/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to