Skip to content

Build fails - json-schema.org returns 403 on github runners #1455

Closed
@scottgerring

Description

@scottgerring

Our builds have started failing in the powertools-validation unit tests. The ValidationAspectTest tries to do some validation that requires the retrieval of a schema from https://json-schema.org/draft/2019-09/meta/core - this works locally, but seems to be blocked on Github Actions, returning a 403.

What were you trying to accomplish?

Expected Behavior

Unit tests work everywhere.

Current Behavior

Possible Solution

Let's talk to the json-schema team if possible to try work out why this is 403ing from github, and if there is a risk of this happening from within Lambdas as well.

Another option could be using the uriMappings mentioned in the documentation for the unit test itself, to provide local copies of the schema tested to avoid the call out from the actions runner to the internet.

Steps to Reproduce (for bugs)

Run any build from the github runners.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:2High - core feature or affects 60% of the users

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions