Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Accurate PAT note
Browse files Browse the repository at this point in the history
with this query

```qraphql
query tags {
  repository(owner: "crystal-lang", name: "crystal") {
    releases(first: 3, orderBy: {field: CREATED_AT, direction: DESC}) {
      edges {
        node {
          name
        }
      }
    }
    refs(
      refPrefix: "refs/tags/"
      first: 3
      orderBy: {field: TAG_COMMIT_DATE, direction: DESC}
    ) {
      edges {
        node {
          name
        }
      }
    }
  }
}
```

returns below

```
{
  "message": "Personal access tokens with fine grained access do not support the GraphQL API",
  "documentation_url": "https://docs.github.com/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql"
}
```
  • Loading branch information
kachick committed Oct 22, 2022
1 parent 27e05c1 commit ff4bda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ See [#191](https://github.com/kachick/renovate-config-asdf/issues/191) and [#206
NOTE

- `main` branch will NOT work except GitHub. Because it points `local>`. Please use tagged versions as `github>kachick/renovate-config-asdf#1.6.0`.
- Should pass `GITHUB_COM_TOKEN` for ENV with your PAT, at 2022-10-22, [beta version of fine-grained PAT](https://github.blog/2022-10-18-introducing-fine-grained-personal-access-tokens-for-github/) with no special permissions can not fetch github-tags (github-releases can be fetched!). So I recommend to use classic PAT.
- Should pass `GITHUB_COM_TOKEN` for ENV with your **classic PAT**, at 2022-10-22, [beta version of fine-grained PAT](https://github.blog/2022-10-18-introducing-fine-grained-personal-access-tokens-for-github/) can not fetch github-tags with GraphQL as used as inside of renovate runner.

## Limitations

Expand Down

0 comments on commit ff4bda0

Please sign in to comment.