Reputation: 33
I am trying to automate the deployment of our android and ios apps and there is one step that I can't seem to automate.
I've created a bash script as well as a dart script that work together to do most everything else. the deployment aspect is managed by fastlane and everything else seems to work fine.
After automatically updating our changelog and iterating to the next build number I need to be able to commit the changes with a default "preparing for app deployment" message. However all I can seem to do is authenticate with my personal access token or ssh token, which I believe tie it to my personal account.
I've looked into github cli and I can do something like this but it still uses a personal account:
gh auth login --with-token < (insert token here)
Is there way to do this with something like a service account that is only allowed certain permissions?
I want to future proof this so that it isn't tied to someone's account that could leave the organization in the future.
Upvotes: 2
Views: 2420
Reputation: 1326716
You can use a deploy key with write access.
That way, it is tied to the repository, not a personal account.
Upvotes: 3