npearce / CaC-Github_Webhook_Server

Automated Network Configuration-as-Code (NCaC) deployments using Github webhook to F5 BIG-IP.
https://redtalks.live/cac/
MIT License
14 stars 5 forks source link

Validate Ghe Connectivity in getSettings() #26

Closed npearce closed 6 years ago

npearce commented 6 years ago

Verify that we have the right settings in the webhook server, perform an access check to the BIG-IP's repo.

Maybe use octokit.repo.getShaOfCommitRef(owner, repo, ref) to ensure access to the repo?

This will execute every time the settings are changed, and every time a webhook message is received, so we can fail, and createIssue() if no access to repo.

Requires #35

npearce commented 6 years ago

Implemented and tested.