422 when using GraphQL from an action

In this action run: https://github.com/mathstuf/ghostflow-action-sandbox/runs/238839463 I’m getting a 422 error when running the GraphQL query here: https://gitlab.kitware.com/ben.boeckel/rust-ghostflow/blob/ghostflow-cli/ghostflow-github/src/graphql/query.graphql#L284 (the input parameters are in the log above the 422 error). I’m using this code just fine from a GitHub App context.

Circling back here. Turns out that using api.github.com rather than github.com as the endpoint URL gives better results.