Skip to content

JSON Linter

Run JSON validation and syntax checking

uses: huntridge-labs/argus/.github/actions/linter-json@0.6.7

Validate JSON files using jsonlint.

Overview

This action checks JSON syntax across your repository. It uploads results as artifacts that can be aggregated by the linting summary action.

Usage

- name: Checkout code
  uses: actions/checkout@v6

- name: Run JSON validation
  uses: huntridge-labs/argus/.github/actions/linter-json@0.6.7
  with:
    fail_on_issues: false

Inputs

Input Description Required Default
fail_on_issues Fail the job if issues are found No false
paths Paths to search for JSON files (space-separated) No .
node_version Node.js version to use No 20

Outputs

Output Description
issues_count Number of validation issues found

Artifacts

  • linter-summary-json: summary for linting-summary
  • json-lint-results: raw lint output

Requirements

  • Repository must be checked out before running this action

Support