Skip to content

feat(gateway): Distroless image #7062

feat(gateway): Distroless image

feat(gateway): Distroless image #7062

name: Validate Plugin Examples
on:
pull_request:
types: [synchronize, ready_for_review, opened]
workflow_dispatch:
permissions:
contents: read
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
validate:
name: Validate plugin examples against schemas
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@2bb135777322059ee3a3c9239999b159ff49febc
with:
files: |
app/_kong_plugins/*/examples/**
app/_schemas/gateway/plugins/**
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
if: steps.changed-files.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'
with:
node-version: "24"
- name: Install dependencies
if: steps.changed-files.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'
working-directory: tools/plugin-examples-validator
run: npm ci
- name: Run validation
if: steps.changed-files.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'
working-directory: tools/plugin-examples-validator
run: npm run validate