apify-fix-git-connection
БесплатноБез исполняемых скриптовНе проверенRepair an Apify Actor's broken Git connection - pushes to GitHub that no longer start a build, builds that fail to clone the repository, or a GitHub…
от apify★ 2 531 звезда на GitHubОб этом скилле
Fix an Actor's Git connection
A Git-sourced Actor deploys through two links, and each one breaks on its own:
- Clone: Apify reads the repository when it builds.
- Trigger: a push to the repository starts that build.
Diagnose both links, repair the broken ones, then prove the chain with one push. Runs keep using the last successful build the whole time, so the Actor stays up while you work.
The steps use the Apify CLI (apify login first) and the GitHub CLI (gh). They are written for GitHub; GitLab and Bitbucket have the same two links behind different commands and screens.
Two rules hold in every step:
- Ask before a deploy. A successful build moves the version's build tag (usually
latest) to the head of the branch, so starting a build and pushing a commit are both deploys. Get the user's go-ahead for each. - Tokens stay with the user. A webhook URL embeds an Apify API token. Print only its host, as the commands below do, and judge a delivery by its status code: its response body repeats the URL. The user performs every step that handles a key, a token or that URL.
1. Find the Git version
apify api GET '/v2/actors/<username>~<actor-name>'
apify api GET '/v2/actors/<username>~<actor-name>/builds?desc=true&limit=5'
In versions, take the entry with sourceType: "GIT_REPO" and note its versionNumber, gitRepoUrl and buildTag. In taggedBuilds, note the build that tag points at. An Actor with no GIT_REPO version deploys with apify push and is outside this skill.
Done when you can name the version, its repository URL, and the build that is live.
2. Diagnose the clone link
Read the log of the newest build of that version:
apify api GET '/v2/actor-builds/<buildId>/log'
| Log line | Clone link |
|---|---|
Cloned commit ID: <sha> |
Works |
Could not read from remote repository |
Broken |
A build from before the trouble started proves nothing. In that case start a fresh one (a deploy) and read its log:
apify api POST '/v2/actors/<username>~<actor-name>/builds?version=<versionNumber>'
Done when a build newer than the trouble shows one of the two lines.
3. Diagnose the trigger link
gh api repos/<owner>/<repo>/hooks --jq '.[] | {id, active, events, host: (.config.url | split("/")[2]), last_response_code: .last_response.code}'
gh api 'repos/<owner>/<repo>/hooks/<hookId>/deliveries?per_page=5' --jq '.[] | {delivered_at, event, status_code}'
An Apify webhook has the host console-backend.apify.com (registered by Apify's GitHub App) or api.apify.com (a Build Actor webhook added by hand).
| What the repository shows | Trigger link |
|---|---|
One Apify webhook, latest push delivery 2xx |
Works |
Latest push delivery 400 or 401 |
Broken: Apify rejects the token in the webhook URL |
| No Apify webhook | Broken: nothing starts a build |
| Two Apify webhooks answering 2xx | Works, but every push starts two builds: the user deletes one |
Done when every Apify webhook on the repository is in one row of the table.
4. Repair the clone link
A private repository needs the SSH form of the Git URL plus the Actor's deployment key. The user does this:
- In Apify Console, open the Actor's Source tab and select the Git version in Version.
- Set Git URL to
[email protected]:<owner>/<repo>.gitand save. The HTTPS form only clones public repositories. - Click the deployment key link below the URL field and copy the key.
- On GitHub, open the repository's Settings > Deploy keys > Add deploy key, paste the key, leave Allow write access unchecked, and save.
Confirm the key with gh api repos/<owner>/<repo>/keys --jq '.[] | {title, read_only, created_at}', then start a build (step 2) and read its log.
Done when a build log shows Cloned commit ID with the head of the branch.
5. Repair the trigger link
First let Apify register the webhook itself:
apify api PUT '/v2/actors/<username>~<actor-name>/versions/<versionNumber>/build-on-push' -d '{"providerId":"github-app","enabled":true}'
- No error: automatic builds are on. Have the user delete any older Apify webhook that still fails, then go to step 6.
invalid-git-auth-token: Apify's GitHub authorization is dead. Use a Build Actor webhook instead; it depends only on the clone link.
For the Build Actor webhook, the user does this:
- In Apify Console, open Settings > API & Integrations and select Create a new token. Name it after the webhook, for example `GitHub build webhook fo
Установить apify-fix-git-connection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл apify-fix-git-connection?
Repair an Apify Actor's broken Git connection - pushes to GitHub that no longer start a build, builds that fail to clone the repository, or a GitHub integration rejected as invalid or expired (for example after Apify API tokens were revoked). Use when a Git-sourced Actor stopped deploying from its repository.
Как установить скилл apify-fix-git-connection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл apify-fix-git-connection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic