API¶
The top-level package for the project.
rig ¶
CodeQL overrides of pyrig's scaffolding and maintenance layer.
Mirrors pyrig's own rig namespace so its plugin-discovery mechanism
automatically picks up this package's overrides and additions.
configs ¶
Declarative definitions of the configuration files managed by this plugin.
This package is this plugin's discovery scope for pyrig's config-file management: every file this plugin manages or overrides is defined here.
version_control ¶
CodeQL customizations for generated version-control configuration.
remote ¶
CodeQL customizations for generated GitHub remote-repository configuration.
code_analyzer ¶
workflows ¶
CodeQL-specific GitHub Actions workflow configuration.
Health check workflow extended with a CodeQL analysis job.
Bases: HealthCheckWorkflowConfigFile
Health check workflow extended with a CodeQL analysis job.
Return the CodeQL analysis job.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Job configuration with a matrix over |
dict[str, Any]
|
the permissions CodeQL needs to build a database and upload its |
dict[str, Any]
|
results, and the analysis steps. |
Source code in src/pyrig_codeql/rig/configs/version_control/remote/workflows/health_check.py
job_health_check_needs() -> tuple[MethodType, ...]
Return the upstream jobs required before the aggregate job runs.
Prepends the CodeQL analysis job to the two base health-check jobs so the aggregate status remains a release gate for every analysis.
Returns:
| Type | Description |
|---|---|
tuple[MethodType, ...]
|
The base class's dependencies plus the CodeQL analysis job. |
Source code in src/pyrig_codeql/rig/configs/version_control/remote/workflows/health_check.py
Build a step that runs the CodeQL analysis and uploads results.
Fails the job if the analysis itself fails to run; code scanning alerts found by the analysis do not fail the step.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Step using |
Source code in src/pyrig_codeql/rig/configs/version_control/remote/workflows/health_check.py
Build a step that initializes the CodeQL database.
Neither analyzed language is compiled, so no build step is required between initialization and analysis.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Step using |
Source code in src/pyrig_codeql/rig/configs/version_control/remote/workflows/health_check.py
Return the steps for the CodeQL analysis job.
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
Steps that check out the repository, initialize CodeQL for the |
list[dict[str, Any]]
|
current matrix language, and run the analysis. |
Source code in src/pyrig_codeql/rig/configs/version_control/remote/workflows/health_check.py
resources ¶
Static resource files bundled with the project.