Commit c928dec
Changed files (1)
bin
bin/jwt
@@ -21,12 +21,18 @@ jwt = JWT.encode(
"RS256"
)
-command = [
+system([
:curl,
'-i',
"-H 'Authorization: Bearer #{jwt}'",
"-H 'Accept: application/vnd.github.v3+json'",
"https://api.github.com/app"
-].map(&:to_s).join(' ')
+].map(&:to_s).join(' '))
-system(command)
+system([
+ :curl,
+ '-i',
+ "-H 'Authorization: Bearer #{jwt}'",
+ "-H 'Accept: application/vnd.github.v3+json'",
+ "https://api.github.com/app/installations"
+].map(&:to_s).join(' '))