Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/validate-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ jobs:
services:
# Label used to access the service container
swagger-editor:
# Docker Hub image
image: swaggerapi/swagger-editor
# Docker Hub image. Pinned to v4: `latest` is now SwaggerEditor 5, which
# serves on port 80 and lacks the v4 error panel the validator reads.
image: swaggerapi/swagger-editor:v4.14.8
ports:
# Maps port 8080 on service container to the host 80
- 80:8080

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Ubuntu 24.04 runners block the unprivileged user namespaces Chromium's
# sandbox needs, so the validator's headless browser fails to launch.
- name: Allow Chromium sandbox
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Validate OpenAPI definition
uses: char0n/swagger-editor-validate@v1
with:
Expand Down
Loading