OAI / tools.openapis.org

A collection of open-source and commercial tools for creating your APIs with OpenAPI - Sourced from and published for the community
https://tools.openapis.org/
108 stars 30 forks source link

Data build is failing with 403 returned by Github API #97

Closed SensibleWood closed 10 months ago

SensibleWood commented 1 year ago

Describe the bug

The build currently fails due to a new restriction at the Github API.

A 403 is returned where it should not be i.e. the permissions applied by Github should not result in a 403 being returned.

The behaviour was experienced in the past when there were too many active connections to the Github API. This has been tuned in the past down to 2 using the environment variables in the project.

To Reproduce

Steps to reproduce the behaviour:

Run either yarn run build:data:metadata or yarn run build:data:full via the Github Actions workflow.

Expected behaviour

The build should run to completion.

Additional context

This needs fixing to get the build up-and-running again, which will address #96 and #92 raised by @spacether as the JSON Schema Generator repository is correctly tagged using the openapi31 topic.

Actions:

SensibleWood commented 1 year ago

Update on investigations.

The failure turned out to be deterministic, namely that it always failed when it hit the Postman Open Technologies organisation. This turned out to be because of the PAT: Postman has prohibited the use of classic tokens, so once a new token was generated and added to the secrets the build ran to completion.