Skip to content

Commit

Permalink
feat: auth for GitHub Server App
Browse files Browse the repository at this point in the history
feat: github-server-app list installations for the authenticated app

fix: remove endpoints not supported by GitHub App

APIs not supporting Installation access token are not used

fix: add auth to more calls such as graphQL

feat: remove raw endpoints deom default filters

fix: default validations for GHSA
  • Loading branch information
miri-yehezkel committed Jul 22, 2024
1 parent 6d9f659 commit 2505e7a
Show file tree
Hide file tree
Showing 2 changed files with 837 additions and 257 deletions.
4 changes: 2 additions & 2 deletions config.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@
"github-server-app": {
"validations": [
{
"url": "https://$GITHUB_API/user",
"url": "https://$GITHUB_API/installation/repositories?per_page=1&page=1",
"auth": {
"type": "header",
"name": "Authorization",
"value": "token $GITHUB_TOKEN"
"value": "Bearer $ACCESS_TOKEN"
}
}
],
Expand Down
Loading

0 comments on commit 2505e7a

Please sign in to comment.