Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

Using Personal Access Tokens in CI?

For our PHP application we have a CI setup where we run everything in Docker containers, both locally and on Travis (skipping the Travis PHP features and just using it as a runner for Docker containers). When we install lots of updated packages with composer, we run into API limits and composer recommends to create personal access tokens. While mounting the personal tokens of developers on our machines is fine, I'm not sure which acces token to use on Travis. It'd be possible to create an access token with one developer account and put it in as a Travis secret, generating a composer configuration when Travis runs. But that ties the CI to one developer's account. Is there a better way?

1 Reply
Highlighted
Community Manager
Message 2 of 2

Re: Using Personal Access Tokens in CI?

Hi @gbirke,

 

Thanks for being here! It might make sense to have a dedicated CI user account created for your purpose. I'm curious to see if maybe someone else has any other ideas. 


My very best,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!