Skip to content

GitHub Actions workflows: run: steps are not parsed as bash, so a workflow has no edge to the scripts it runs #5565

Done

Description

@yashsaxena

What happens

A GitHub Actions workflow's run: steps are bash scripts (the default shell on Linux runners), and they are often the only place a repo's scripts are run from.
Graphify does not read them, so a workflow has no edge to the scripts it runs, and those scripts look unused.

Reproduced on graphifyy 0.9.122 (newest on PyPI), installed with pip, nothing patched, Python 3.12, Ubuntu.

Reproduction

Three files in a new git repo:

# .github/workflows/ci.yml
name: ci
on: push
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - run: bash scripts/check.sh
      - run: ./scripts/lint
# scripts/check.sh
#!/usr/bin/env bash
echo checked
# scripts/lint   (no extension, bash shebang)
#!/usr/bin/env bash
echo linted

Command:

graphify extract "$PWD" --code-only --out /tmp/out
jq -r '.links[] | select(.relation != "contains" and .relation != "defines")
       | "\(.relation) \(.source) -> \(.target)"' /tmp/out/graphify-out/graph.json

Expected

calls .github/workflows/ci.yml -> scripts/check.sh
calls .github/workflows/ci.yml -> scripts/lint

(the relation name is yours to pick; any edge from the workflow to each script)

Got

(no edges)

Suggested fix

For files under .github/workflows/, parse each step's run: text with the Bash extractor (when the step's shell is bash or unset), and attach the edges it finds to the workflow file.
The same could apply to composite actions' action.yml.

Activity

  1. github-actions commented on Nov 28, 2026

    @github-actions

    Thanks for opening this issue, @yashsaxena. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

  2. added a commit that references this issue on Nov 30, 2026
    4af1277
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions