Skip to content

[refactoring] Extract shared Python setup for analysis workflows #77038

Not planned

Description

@github-actions

Summary

actions/setup-python (3.11 or 3.12) is repeated in 4 workflows. Priority is Medium under the rubric (3-4 workflows).

Current usage

  • agentic-token-audit.md (L38-40). This file has source: githubnext/agentic-ops@... at L76, so it is upstream-managed and read-only here.
  • agentic-token-trend-audit.md
  • daily-geo-optimizer.md
  • daily-ambient-context-optimizer.md

Proposed shared component

.github/workflows/shared/python-setup.md with the setup-python step. The versions differ (3.11 and 3.12), so either pick one or expose the version through a per-import setting.

Estimated impact

  • 4 workflows, about 4-6 lines each: about 20 lines removed
  • Mostly consistency; the saving is small

Migration plan

  1. Confirm whether all four workflows need the same Python version.
  2. Create shared/python-setup.md.
  3. Migrate the three non-upstream workflows and run make recompile.
  4. For agentic-token-audit.md, make the change upstream and pull it in with gh aw update. Do not hand-edit it.

Example usage

imports:
  - uses: shared/python-setup.md

Generated by 🔍 Workflow Skill Extractor · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~1 AIC · ⊞ 3K · ◷

  • expires on Nov 13, 2026, 7:49 PM UTC-08:00

Activity

  1. github-actions commented on Nov 12, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~2 AIC · ⊞ 10.5K · ◷

  2. github-actions commented on Nov 14, 2026

    @github-actions
    ContributorAuthor

    This issue was automatically closed because it expired on 2026-11-14T03:49:25.604Z.

    Closed by Workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions