Skip to content

Avoid apt install for preinstalled gh - #146

Open
00200200 wants to merge 1 commit into
anthropics:mainfrom
00200200:codex/avoid-apt-gh-install
Open

00200200 wants to merge 1 commit into
anthropics:mainfrom
00200200:codex/avoid-apt-gh-install

Conversation

@00200200

Copy link
Copy Markdown

Problem

The action runs apt-get update && apt-get install gh on every job. GitHub-hosted runners already include the GitHub CLI, so an intermittent package mirror stall can prevent the security scan from starting.

Change

Use the runner's existing gh binary and fail immediately with a clear error if a self-hosted runner does not provide it.

Validation

  • Confirmed the check and version output work with the installed gh binary.
  • git diff --check passed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant