Skip to main content
GitHub Actions

GitHub Actions

Discover GitHub Actions workflows, runs, and jobs for complete CI/CD pipeline visibility.

  • Workflows: CI/CD workflow definitions

  • Workflow Runs: Execution history with status and conclusions

  • Jobs: Individual job execution within runs

  • Automatic Relationships: Links workflows to repositories, runs to workflows, jobs to runs

  • gh_actions_list_workflows - List workflows for a repository

  • gh_actions_list_runs - List recent workflow runs with filters

  • gh_actions_get_run - Get detailed run information with jobs

  • gh_actions_trigger_workflow - Trigger a workflow_dispatch event

  • gh_actions_cancel_run - Cancel a running workflow

  • gh_actions_rerun - Re-run failed workflows

  • gh_actions_get_logs - Get workflow run logs

discovery:
enabled: true
settings:
token: "ghp_YOUR_TOKEN" # Requires 'repo' and 'workflow' scopes
repositories:
- "myorg/api"
- "myorg/frontend"
max_runs_per_workflow: 10
include_jobs: true
days_back: 7

mcp:
enabled: true
settings:
token: "ghp_YOUR_TOKEN"

namespace: "default"
name: "myorg/api/CI"
spec:
id: 12345
name: "CI"
path: ".github/workflows/ci.yml"
state: "active"
name: "myorg/api/run-67890"
spec:
run_number: 123
status: "completed"
conclusion: "success"
event: "push"
head_branch: "main"
actor: "john-doe"
name: "myorg/api/run-67890/job-111"
spec:
name: "build"
status: "completed"
conclusion: "success"
duration_seconds: 45.2
RelationshipFromTo
BELONGS_TOWorkflowGithubRepository
EXECUTESWorkflowRunWorkflow
PART_OFJobWorkflowRun
BUILDSWorkflowRunDockerImage (detected)
DEPLOYS_TOWorkflowRunK8sDeployment (detected)
degree discovery run githubactions@1.0.0 --config actions-config.yaml
"Which GitHub Actions workflow built this Docker image?"
"Show me all failed CI runs in the last week"
"What jobs failed in workflow run #123?"
"Trigger the deployment workflow for the main branch"
  • Workflows belong to GitHub repositories

  • Runs track commits and branches

  • Detects Docker build/push steps

  • Creates BUILDS relationships to DockerImage entities

  • Detects kubectl/argo deployment steps

  • Creates DEPLOYS_TO relationships

GithubRepository (GitHub molecule)
↓ BELONGS_TO
GitHubWorkflow (GitHub Actions molecule)
↓ EXECUTES
GitHubWorkflowRun
↓ BUILDS
DockerImage (Docker molecule)
↓ SCANNED_BY
SnykContainerImage (Snyk molecule)
↓ RUNS_IN
K8sPod (Kubernetes molecule)