Skip to content

Code Quality and Linting Pipeline

Code Quality and Linting Pipeline - Reusable Workflow

THIN WRAPPER: This workflow delegates to individual linter composite actions. All linting logic is in: - .github/actions/linter-yaml/action.yml - .github/actions/linter-json/action.yml - .github/actions/linter-python/action.yml - .github/actions/linter-javascript/action.yml - .github/actions/linter-dockerfile/action.yml - .github/actions/linter-terraform/action.yml - .github/actions/linting-summary/action.yml

For GHES users: Use the composite actions directly instead of this workflow. See: examples/github-enterprise/

uses: huntridge-labs/argus/.github/workflows/linting.yml@0.6.7

Triggers

  • Manual dispatch
  • Reusable (called by other workflows)

Permissions

Scope Access
contents read
actions read
pull-requests write

Inputs

Input Description Required Default
fail_on_issues Fail the workflow if linting issues are found boolean No False
post_pr_comment Post linting summary as PR comment boolean No True

Jobs

yaml-lint โ€” YAML Linting

Runs on: ubuntu-latest ยท Continue on error: Yes

Steps:

  1. Checkout repository โ€” actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  2. Run YAML Linter โ€” huntridge-labs/argus/.github/actions/linter-yaml@0.6.7

Actions used:

json-lint โ€” JSON Validation

Runs on: ubuntu-latest ยท Continue on error: Yes

Steps:

  1. Checkout repository โ€” actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  2. Run JSON Linter โ€” huntridge-labs/argus/.github/actions/linter-json@0.6.7

Actions used:

python-lint โ€” Python Code Quality

Runs on: ubuntu-latest ยท Continue on error: Yes

Steps:

  1. Checkout repository โ€” actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  2. Run Python Linter โ€” huntridge-labs/argus/.github/actions/linter-python@0.6.7

Actions used:

javascript-lint โ€” JavaScript Code Quality

Runs on: ubuntu-latest ยท Continue on error: Yes

Steps:

  1. Checkout repository โ€” actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  2. Run JavaScript Linter โ€” huntridge-labs/argus/.github/actions/linter-javascript@0.6.7

Actions used:

dockerfile-lint โ€” Dockerfile Linting

Runs on: ubuntu-latest ยท Continue on error: Yes

Steps:

  1. Checkout repository โ€” actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  2. Run Dockerfile Linter โ€” huntridge-labs/argus/.github/actions/linter-dockerfile@0.6.7

Actions used:

terraform-lint โ€” Terraform Linting

Runs on: ubuntu-latest ยท Continue on error: Yes

Steps:

  1. Checkout repository โ€” actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  2. Run Terraform Linter โ€” huntridge-labs/argus/.github/actions/linter-terraform@0.6.7

Actions used:

linting-summary โ€” Linting Summary

Runs on: ubuntu-latest ยท Depends on: yaml-lint, json-lint, python-lint, javascript-lint, dockerfile-lint, terraform-lint ยท Condition: always()

Steps:

  1. Checkout repository โ€” actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  2. Generate Linting Summary โ€” huntridge-labs/argus/.github/actions/linting-summary@0.6.7
  3. Fail if issues found

Actions used:

All Composite Actions Referenced