ampcc / coding-challenge

Other
3 stars 2 forks source link

Test Github Rest API to create repos automatically #24

Closed Marcodaum closed 1 year ago

Marcodaum commented 1 year ago

Idea: test out api calls with ssh key on github rest api

lorenzschreyer commented 1 year ago
lorenzschreyer commented 1 year ago

Code for getting all repos under ampcc

curl -L -H "Accept: application/vnd.github+json" -H "Authorization: f7b4b47993ce3f646dadf953433e2770db3e407f" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/ampcc/repos

More Calls -> create organisation repositories

KRIYO144 commented 1 year ago

Created GitHub App in Organisation

https://github.com/organizations/ampcc/settings/apps/coding-challenge-bot

The Authentication for the API Calls will be managed in this App. (Not working right now)

lorenzschreyer commented 1 year ago

Deleted GitHub App because there is a better way to authenticate in a workflow. feature/test-github-api

lorenzschreyer commented 1 year ago

Changed Authentication Type to GithubApp

Marcodaum commented 1 year ago

@lorenzschreyer Is this GitHub Access-Token, that is exposed in your second comment security-critical? If yes we have to recreate one.