Find GitHub Repository Id for use in GitHub REST API

Dipesh Shah
2 min readNov 19, 2022

Recently I came across a scenario to use GitHub REST API for updating Organization level secrets having visibility set to repositories.

Problem: Managing repository list of Organization level secrets manually is not feasible when you have 100+ repositories within the GitHub Organization. Whenever a new repository gets, we have to request GitHub admin has to manually set repository on GitHub Portal.

Solution: Use GitHub REST API to add selected repository to an organization secret

--

--

Dipesh Shah

Enterprise Cloud Solution Architect, DevOps Lead, Learner