ida-and-github-actions
БесплатноБез исполняемых скриптовНе проверенUse best practices to configure a GitHub Action workflow to use IDA, idalib, and/or HCLI.
от williballenthin★ 202 звезды на GitHubОб этом скилле
Workflows should generally use this order, because some of the steps create environments that subsequent steps depend on.
Python Installation
Use astral-sh/setup-uv with python-version:.
Use hash pinning with a comment indicating the version.
HCLI Installation
Unless the step is testing HCLI itself, use uv to invoke HCLI:
uv run --with ida-hcli hcli
IDA Installation
Use the short tag format:
ida-pro:latest
When multiple versions of IDA are used, then use a specific tag, like ida-pro:9.4. Otherwise, use latest.
Always provide the following flags: --license-id ${IDA_LICENSE_ID} --install-dir="${{ runner.temp }}/app/ida" --accept-eula --set-default --create-python-environment --yes
--create-python-environment creates a virtualenv at $HOME/.idapro/venv with pip, matching IDA's Python version.
Provide the license ID and HCLI API key as environment variables:
env:
HCLI_API_KEY: ${{ secrets.HCLI_API_KEY }}
IDA_LICENSE_ID: ${{ secrets.IDA_LICENSE_ID }}
IDAPYTHON_VENV_EXECUTABLE
After install, set IDAPYTHON_VENV_EXECUTABLE in GITHUB_ENV so subsequent steps pick it up. Use uv python find to resolve the path cross-platform (avoids platform-specific bin/python3 vs Scripts/python.exe):
- name: Set IDAPYTHON_VENV_EXECUTABLE
shell: bash
run: |
VENV_PYTHON="$(uv python find "$HOME/.idapro/venv")"
if "$RUNNER_OS" == "Windows"; then
echo "IDAPYTHON_VENV_EXECUTABLE=$(cygpath -w "$VENV_PYTHON")" >> "$GITHUB_ENV"
else
echo "IDAPYTHON_VENV_EXECUTABLE=$VENV_PYTHON" >> "$GITHUB_ENV"
fi
Testing with specific Python versions
When the matrix includes specific Python versions (to verify a plugin works across interpreters), --create-python-environment alone isn't enough because it creates a venv matching IDA's default Python.
Instead:
- Install IDA without
--create-python-environment - Run
idapyswitchto register the matrix Python with IDA - Run
hcli ida python create-environmentto create a venv matching the new interpreter - Set
IDAPYTHON_VENV_EXECUTABLE
The idapyswitch one-liner finds the Python shared library path cross-platform. It uses max(glob, key=len) instead of next(glob) because on some platforms (notably Linux aarch64) the unversioned libpython3.so symlink sorts before the versioned libpython3.14.so, and idapyswitch rejects the unversioned file. Picking the longest filename ensures the versioned library is selected. On macOS with Homebrew framework builds, sysconfig.get_config_var("LDLIBRARY") returns a framework-relative path that doesn't exist under LIBDIR, so the glob approach is used instead:
${{ runner.temp }}/app/ida/${{ matrix.ida.idapyswitch }} --force-path $(uv run --python $HOME/.idapro/venv python -c 'import sys,sysconfig,pathlib;print(__import__("_winapi").GetModuleFileName(sys.dllhandle) if sys.platform=="win32" else max(pathlib.Path(sysconfig.get_config_var("LIBDIR")).glob("libpython*"),key=lambda p:len(p.name)))')
Python programs using idalib
For Python programs that use IDA as a library (idalib), create and activate a venv using uv:
uv sync --no-sources --extra dev --extra test
The program uses this environment's Python interpreter and virtual environment. When it loads IDA via idalib, IDA also uses this environment, so no additional setup is required.
Note that a program may rely on idalib and expect IDA to run plugins, such as to load new file formats. In this case, all the Python dependencies of the IDA plugins must be available in the program's virtual environment. There's not an easy way to programmatically do this today; you should hardcode the installation of the deps into the virtual environment setup. HCLI should probably grow a command to do this.
idalib
For programs that use idalib, they need the idapro or ida-domain Python packages in their virtual environment, which they should have in their pyproject.toml file.
Example workflow (simple)
When you don't need a Python version matrix:
tests:
name: IDA on ${{ matrix.ida.os }}
runs-on: ${{ matrix.ida.os }}
strategy:
fail-fast: false
matrix:
ida:
- version: "latest"
os: ubuntu-latest
- version: "latest"
os: macos-latest
- version: "latest"
os: windows-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Setup uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
version: "0.12.6"
- name: Install IDA
shell: bash
run: |
uv run --with ida-hcli hcli
Установить ida-and-github-actions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ida-and-github-actions?
Use best practices to configure a GitHub Action workflow to use IDA, idalib, and/or HCLI.
Как установить скилл ida-and-github-actions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ida-and-github-actions запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic