GitHub Actions Workflow & .gitlab-ci.yml Validator Online
Validate GitHub Actions workflows, action.yml and .gitlab-ci.yml: JSON Schema, needs, ${{ }} expressions, cron, unpinned actions, script injection.
Result
Press “Run” to see the result.
Send the YAML (text, file or raw body); the type is detected (or set type to github-workflow, github-action or gitlab-ci). Step 1 validates it against the official JSON Schemas (SchemaStore github-workflow / github-action, GitLab ci.json, refreshed weekly) and reports the most specific error per location with the YAML line number. Duplicate keys and YAML syntax errors are caught too.
Step 2 runs semantic and security checks: needs pointing to unknown jobs or forming a cycle, ${{ }} expression syntax (double-quoted strings, unknown functions / contexts) and context availability (e.g. secrets in if, matrix in a job if), steps.<id> / needs.<job> references, empty matrices, cron syntax and frequency, retired runner images (ubuntu-20.04, windows-2019, macos-13…) and dead action versions (upload-artifact v3, cache v2), actions not pinned to a commit SHA (supply-chain risk), pull_request_target + checkout of the PR head (pwn request), script injection from issue / PR titles and commit messages, broad permissions, deprecated ::set-output, secrets echoed in logs. For GitLab: unknown stages, needs / dependencies / extends targets, needs on later stages, rules together with only/except, literal secrets in variables.
The response also lists jobs with their dependencies, a Mermaid graph and every action used. Checks are our own (inspired by actionlint’s public rule list). Related: /v1/dockerfile-lint, /v1/k8s-validate, /v1/cron.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/ci-validate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"yaml":"name: CI\non: [push, pull_request]\njobs:\n test:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: 22\n - run: npm ci && npm test\n deploy:\n needs: [test, build]\n if: ${{ github.ref == \"refs/heads/main\" }}\n runs-on: ubuntu-latest\n steps:\n - run: echo \"${{ github.event.head_commit.message }}\"\n"}'const res = await fetch('https://apibox.io.vn/v1/ci-validate', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"yaml": "name: CI\non: [push, pull_request]\njobs:\n test:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: 22\n - run: npm ci && npm test\n deploy:\n needs: [test, build]\n if: ${{ github.ref == \"refs/heads/main\" }}\n runs-on: ubuntu-latest\n steps:\n - run: echo \"${{ github.event.head_commit.message }}\"\n"
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/ci-validate",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"yaml": "name: CI\non: [push, pull_request]\njobs:\n test:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: 22\n - run: npm ci && npm test\n deploy:\n needs: [test, build]\n if: ${{ github.ref == \"refs/heads/main\" }}\n runs-on: ubuntu-latest\n steps:\n - run: echo \"${{ github.event.head_commit.message }}\"\n"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/ci-validate');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"yaml":"name: CI\\non: [push, pull_request]\\njobs:\\n test:\\n runs-on: ubuntu-latest\\n steps:\\n - uses: actions/checkout@v4\\n - uses: actions/setup-node@v4\\n with:\\n node-version: 22\\n - run: npm ci && npm test\\n deploy:\\n needs: [test, build]\\n if: ${{ github.ref == \\"refs/heads/main\\" }}\\n runs-on: ubuntu-latest\\n steps:\\n - run: echo \\"${{ github.event.head_commit.message }}\\"\\n"}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Which schemas are used?
SchemaStore github-workflow and github-action (Apache-2.0) and GitLab’s own ci.json (MIT), bundled and refreshed weekly.
Why warn about tags like @v4?
A tag can be moved to malicious code (as with tj-actions/changed-files in March 2025); a full commit SHA cannot. First-party actions/* are reported as info, third-party ones as warnings.
Are reusable workflows and includes followed?
No: only the file you send is checked; GitLab references to included jobs are not reported as unknown when the file has an include.