I asked this in GitHub support and they thought it was better suited here
I have an application that interacts with GitHub. I have previously used a Bot user for this, but now I’m transitioning it to an Integration. There is one issue that I have come across that I’m not sure how to solve.
I use AWS CodePipeline and I provision my pipelines through CloudFormation. When doing it this way, CodePipeline requires that I supply my own API Token for access to the repositories.
(see the docs - at the bottom under the “Action Configuration Properties for Provider Types” table)
I previously just created a Personal API Token for the bot user and that worked fine. But I don’t see a way to get a token like that from an Integration. I would like to remove the bot user from my org so I can free up a seat, but I don’t think using a user’s Personal API Token is the proper approach either.
This could be more of an issue with AWS. When creating a Pipeline through the console, it authenticates by itself through the OAuth workflow. But you obviously can’t do that in CloudFormation, so the only answer I came up with was Personal API Tokens.
Do you have any thoughts or a recommended answer to my problem?