Skip to content

infra: configure GitHub Actions runners for fork CI #62

@terisuke

Description

@terisuke

背景

PR #61でCI/CDワークフローを整理したが、フォークリポ (Cor-Incorporated/opencode) にGitHub Actionsのランナーが設定されていないため、pull_requestイベントのジョブ(typecheck, test, e2e)が永久にqueuedのまま実行されない。

pull_request_targetイベント(pr-standards等)はベースリポのランナーで動くため成功する。

現状

  • typecheck, test (unit/e2e): 永久queued — ランナーなし
  • pr-standards, check-compliance: 成功 — pull_request_targetで実行

対策案

Option A: GitHub-hosted runners有効化(推奨)

Cor-Incorporated orgのSettings → Actions → Runnersでubuntu-latestを使えるように設定。

  • メリット: 設定が簡単、メンテ不要
  • コスト: GitHub Actions minutes(Private repoは月2,000分まで無料)

Option B: Self-hosted runner (GCE)

GCE上にActions runnerをデプロイ。

  • メリット: コスト管理しやすい、リソース制御可能
  • デメリット: セットアップ・運用コスト

Option C: ワークフローをpull_request_targetに変更

typecheckとtestをpull_request_targetイベントに変更(セキュリティリスクあり)。

  • メリット: ランナー設定不要
  • デメリット: PRブランチのコード実行にセキュリティ上の注意が必要

受入基準

  • typecheckジョブがPRで正常に実行される
  • test (unit linux)ジョブがPRで正常に実行される
  • test (e2e linux)ジョブがPRで正常に実行される(またはe2eを手動トリガーに変更)

関連

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions