I can't get graphql-inspector to work on my repo. I have enabled the app for my repo, and added the following in my main.workflow:
workflow "On Push" {
on = "push"
resolves = "Check GraphQL with Inspector"
}
workflow "On Pull Request" {
on = "pull_request"
resolves = "Check GraphQL with Inspector"
}
# Deploy and Host GraphQL Inspector
action "Check GraphQL with Inspector" {
uses = "kamilkisiela/[email protected]"
secrets = ["GITHUB_TOKEN"]
}
"graphql-inspector": {
"diff": true,
"schema": {
"ref": "head/master",
"path": "new.graphql"
}
}
[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4
01:10:02.143Z DEBUG probot: Webhook received
event: {
"event": "push",
"id": "b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597",
"repository": "steebchen/test-actions"
}
01:10:02.171Z INFO event: GraphQL Inspector started (action: gh-action) - steebchen/test-actions#a17c5c7e3f02ea70c7690f0e34e8d2797e5f4fa6 (id=b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597)
01:10:02.521Z DEBUG github: GitHub request: GET /app/installations - 401 undefined (installation=undefined)
params: {
"per_page": 100,
"baseUrl": "https://api.github.com",
"request": {
"timeout": 0
}
}
01:10:02.523Z ERROR probot: Your private key (usually a .pem file) is not correct. Go to https://github.com/settings/apps/YOUR_APP and generate a new PEM file. If you're deploying to Now, visit https://probot.github.io/docs/deployment/#now.
HttpError: {"message":"A JSON web token could not be decoded","documentation_url":"https://developer.github.com/v3"}
at response.text.then.message (/usr/local/share/.config/yarn/global/node_modules/@octokit/rest/lib/request/request.js:72:19)
at process._tickCallback (internal/process/next_tick.js:68:7)
01:10:02.762Z DEBUG github: GitHub request: POST https://api.github.com/repos/steebchen/test-actions/check-runs - 201 Created (installation=undefined)
params: {
"name": "graphql-inspector",
"started_at": "2019-03-17T01:10:02.172Z",
"head_sha": "a17c5c7e3f02ea70c7690f0e34e8d2797e5f4fa6",
"status": "in_progress",
"baseUrl": "https://api.github.com",
"request": {
"timeout": 0
}
}
01:10:02.763Z INFO event: [check-start] sent - steebchen/test-actions#a17c5c7e3f02ea70c7690f0e34e8d2797e5f4fa6 (id=b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597)
01:10:03.546Z DEBUG github: GitHub request: POST /graphql - 200 OK (installation=undefined)
params: {
"baseUrl": "https://api.github.com",
"query": "\n query GetFile($repo: String!, $owner: String!, $expression: String!) {\n repository(name: $repo, owner: $owner) {\n object(expression: $expression) {\n ... on Blob {\n text\n }\n }\n }\n }\n ",
"variables": {
"repo": "test-actions",
"owner": "steebchen",
"expression": "a17c5c7e3f02ea70c7690f0e34e8d2797e5f4fa6:package.json"
},
"request": {
"timeout": 0
}
}
01:10:04.572Z DEBUG github: GitHub request: POST /graphql - 200 OK (installation=undefined)
params: {
"baseUrl": "https://api.github.com",
"query": "\n query GetFile($repo: String!, $owner: String!, $expression: String!) {\n repository(name: $repo, owner: $owner) {\n object(expression: $expression) {\n ... on Blob {\n text\n }\n }\n }\n }\n ",
"variables": {
"repo": "test-actions",
"owner": "steebchen",
"expression": "head/master:new.graphql"
},
"request": {
"timeout": 0
}
}
01:10:04.575Z ERROR event: Cannot read property 'text' of null (id=b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597)
TypeError: Cannot read property 'text' of null
at /usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/github/dist/probot.js:57:72
at step (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/github/dist/probot.js:32:23)
at Object.next (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/github/dist/probot.js:13:53)
at fulfilled (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/github/dist/probot.js:4:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
--
event: {
"event": "push",
"id": "b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597",
"repository": "steebchen/test-actions"
}
### FAILED Check GraphQL with Inspector 01:10:09Z (26.333s)