validate_actions.globals.cli_config

Holds CLI arguments configuration.

Classes

CLIConfig(fix[, max_warnings, ...])

Configuration for CLI operations.

class validate_actions.globals.cli_config.CLIConfig(fix, max_warnings=9223372036854775807, workflow_file=None, github_token=None, no_warnings=False)[source]

Bases: object

Configuration for CLI operations.

Parameters:
  • fix (bool)

  • max_warnings (int)

  • workflow_file (str | None)

  • github_token (str | None)

  • no_warnings (bool)

fix

Whether to automatically fix detected problems

Type:

bool

max_warnings

Maximum number of warnings before exiting with error code 1

Type:

int

workflow_file

Path to specific workflow file, or None to validate all

Type:

str | None

github_token

GitHub token for API access, or None for no authentication

Type:

str | None

no_warnings

Whether to suppress warning-level problems in output

Type:

bool