Skip to content

guardian-reusable: drop the gh dependency and bump the node20 action pins #742

Closed

Description

@zaebee

Found in the review of Ownima/owner-api#2320.

  1. gh is assumed. The reusable workflow calls gh in two steps (the reaction and the base-branch lookup), and github_poster.py posts the review with gh api. Self-hosted runners without the GitHub CLI fail on the second step. GitHub-hosted runners have it, and the first caller pins ubuntu-latest for other reasons. Switching the workflow steps to actions/github-script and the poster to plain HTTPS (urllib with GH_TOKEN) removes the assumption.
  2. The action pins are older majors. checkout v4, setup-uv v3, github-script v7 and create-or-update-comment v4 all run on node20. Callers pin newer majors elsewhere. Bump them before the runners drop node20.

Done when:

  • no step and no guardian code shells out to gh, and a test pins that;
  • the pins are on current majors;
  • callers move their SHA in a PR of their own.

🤖 Generated with Claude Code

Activity

  1. added
    tailLoose end: something left to check or finish later
    on Oct 22, 2026
  2. zaebee commented on Nov 1, 2026

    @zaebee
    OwnerAuthor

    @it-start Возьмись за эту задачу: пункты 1–2 и критерии Done when из описания. Сделай изменения, прогони проверки репозитория, открой PR и напиши сюда ссылку и короткий отчёт.

  3. it-start commented on Nov 1, 2026

    @it-start
    Collaborator

    Принято: уберу зависимость от gh в guardian-reusable и подниму пины GitHub Actions по пунктам 1–2, затем прогоню проверки и пришлю ссылку на PR с коротким отчётом.

  4. it-start commented on Nov 1, 2026

    @it-start
    Collaborator

    Готово: PR #773 — guardian больше не вызывает gh (шаги воркфлоу на actions/github-script, постер шлёт ревью по HTTPS), пины экшенов подняты до актуальных majors, тесты фиксируют отсутствие gh; проверки и CI зелёные. Мержит человек — auto-merge не включён. Остаётся третий пункт Done when: внешние вызывающие переносят SHA-пин в своих PR; локальный бенч-скрипт guardian_martian.py намеренно сохраняет вызовы gh.

  5. zaebee commented on Nov 1, 2026

    @zaebee
    OwnerAuthor

    @it-start После мержа #773 проверь, пожалуйста, на текущем main в этом репозитории: (а) что ни один шаг guardian-воркфлоу и ни один модуль guardian не вызывает gh, (б) какие пины экшенов теперь стоят и какой раннер им нужен, (в) что из третьего пункта Done when осталось за пределами этого репозитория. Изменений и PR не нужно — ответь здесь.

  6. it-start commented on Nov 1, 2026

    @it-start
    Collaborator

    Проверю на текущем main после мержа #773: отсутствие gh в шагах и модулях guardian, актуальные пины и требуемый раннер, и что из третьего пункта Done when осталось вне репозитория. Изменений не делаю, отвечу здесь.

  7. it-start commented on Nov 1, 2026

    @it-start
    Collaborator

    This is by an automated agent, not a human.

    Проверил main (969f566, слияние #773).

    (а) Шаги guardian-воркфлоу и модули src/cgis/guardian/ больше не вызывают gh; тесты на main зелёные (84). Оставшиеся вызовы — только в локальных бенч-скриптах, вне review-джобы.

    (б) Пины: checkout v7, setup-uv v10.3.3, github-script v9, create-or-update-comment v5, upload-artifact v7, download-artifact v8, create-github-app-token v3.3.0 — все node24, нужен Actions runner ≥ v2.327.1 (ubuntu-latest подходит).

    (в) В этом репозитории ничего не осталось; внешним вызывающим (например, Ownima/owner-api) нужно перепинить uses: и tooling_ref на 969f566 в своих PR.

  8. zaebee commented on Nov 1, 2026

    @zaebee
    OwnerAuthor

    Checked for external callers of the reusable workflow today, before relying on this item: there are none. GitHub code search over the Ownima org and over zaebee's repos finds guardian-reusable only inside this repository — .github/workflows/guardian.yml (internal call) and the two tests. owner-api's workflows call only local ./.github/workflows/* and third-party actions.

    So the third "Done when" item stays open as a when someone adopts it instruction rather than a pending PR:

    • pin uses: zaebee/codegraph-brain/.github/workflows/guardian-reusable.yml@969f566 (the fix(guardian): drop the gh dependency and bump node24 action pins #773 merge commit) and the matching tooling_ref;
    • check the caller's own action pins for node20 while there (the same bump this repo just took);
    • remember the node24 requirement: Actions runner >= v2.327.1.

    The model migration this repo will need next (finder off Anthropic onto opencode-go / DeepSeek) is filed separately as #775.

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

    tailLoose end: something left to check or finish later

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions