machulav / ec2-github-runner

On-demand self-hosted AWS EC2 runner for GitHub Actions
MIT License
745 stars 331 forks source link

Make ec2-github-runner working with GITHUB_TOKEN generated into the Github Action workflow #140

Open mik3fly opened 1 year ago

mik3fly commented 1 year ago

I would like to use a GITHUB_TOKEN generated into my github action workflow instead of a Personnal Access Token. I m in a company context , and as it says "personal token" is not a best practice into a CI workflow.

richardnpaul commented 1 year ago

I guess that it would require some conditional logic and the ability to pass in the app_id and app_private_key. The project is already using the Octokit.js library so here are the Github docs for authenticating with an app installation

mickmorse commented 1 year ago

Would be good to see this also.

hanseartic commented 8 months ago

I would like to use a GITHUB_TOKEN generated into my github action workflow instead of a Personnal Access Token. I m in a company context , and as it says "personal token" is not a best practice into a CI workflow.

We are using machine-users (functional accounts) for those cases