Commit 6e71b33
Changed files (1)
bin
bin/jwt
@@ -20,4 +20,13 @@ jwt = JWT.encode(
private_key,
"RS256"
)
-puts jwt.inspect
+
+command = [
+ :curl,
+ '-i',
+ "-H 'Authorization: Bearer #{jwt}'",
+ "-H 'Accept: application/vnd.github.v3+json'",
+ "https://api.github.com/app"
+].map(&:to_s).join(' ')
+
+system(command)