steampipe plugin install github

Table: github_workflow - Query GitHub Workflows using SQL

GitHub Workflows is a feature within GitHub Actions that allows you to automate, customize, and execute your software development workflows right in your repository. It provides a flexible way to build an automated software development lifecycle workflow. With GitHub Workflows, you can build, test, and deploy your code right from GitHub.

Table Usage Guide

The github_workflow table provides insights into Workflows within GitHub Actions. As a DevOps engineer, explore workflow-specific details through this table, including workflow configurations, status, and associated branches. Utilize it to monitor and manage workflows, such as those with specific event triggers, the branches associated with a workflow, and the verification of workflow configurations.

Important Notes

  • You must specify the repository_full_name column in where or join clause to query the table.

Examples

List workflows

Explore the characteristics and details of workflows within a specific GitHub repository. This can help in understanding the workflow structure and any specific patterns or anomalies, thereby aiding in effective repository management.

select
repository_full_name,
name,
path,
node_id,
state,
url
from
github_workflow
where
repository_full_name = 'turbot/steampipe';
select
repository_full_name,
name,
path,
node_id,
state,
url
from
github_workflow
where
repository_full_name = 'turbot/steampipe';

Schema for github_workflow

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
badge_urltextBadge URL for the workflow.
created_attimestamp with time zoneTime when the workflow was created.
html_urltextHTML URL for the workflow.
idbigint=Unique ID of the workflow.
nametextThe name of the workflow.
node_idtextNode where GitHub stores this data internally.
pathtextPath of the workflow.
pipelinejsonbGithub workflow in the generic pipeline entity format to be used across CI/CD platforms.
repository_full_nametext=Full name of the repository that contains the workflow.
statetextState of the workflow.
updated_attimestamp with time zoneTime when the workflow was updated.
urltextURL of the workflow.
workflow_file_contenttextContent of github workflow file in text format.
workflow_file_content_jsonjsonbContent of github workflow file in the JSON format.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- github

You can pass the configuration to the command with the --config argument:

steampipe_export_github --config '<your_config>' github_workflow