# GitHub Action Template Finder (`ianymu/gh-action-template-finder`) Actor

Find high-quality GitHub Actions workflow templates by category (deployment / testing / security / Claude Code). Each workflow gets a quality score based on parent repo stars, complexity, tool diversity, and freshness. Useful for DevOps teams bootstrapping new repos.

- **URL**: https://apify.com/ianymu/gh-action-template-finder.md
- **Developed by:** [Yanlong Mu](https://apify.com/ianymu) (community)
- **Categories:** AI, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## GitHub Action Template Finder

Find production-grade **GitHub Actions workflow templates** by category — deployment, testing, security scanning, and Claude Code integrations — without manually clicking through 10,000+ public repos. This Actor searches the GitHub code search API, filters by parent-repo stars, fingerprints which tools each workflow uses, then ranks the results by quality. The output is a copy-paste–ready ranked list of `.yml` files you can drop into your `.github/workflows/` directory.

Part of Ian Mu's 100-actor portfolio at [github.com/ianymu](https://github.com/ianymu). Inspired by the post-Stop self-verification flow at [github.com/ianymu/claude-verify-before-stop](https://github.com/ianymu/claude-verify-before-stop).

### What does GitHub Action Template Finder do?

It queries the **GitHub code search API** for workflow YAML files in the `.github/workflows/` directory across all of GitHub, scoped by four supported categories: deployment (Vercel / AWS / GCP / Azure), testing (Playwright / Jest / Cypress), security (CodeQL / Trivy / Snyk / Semgrep), and **Claude Code** (workflows that use `anthropics/claude-code-action`). For each hit it fetches the parent repo's star count, downloads the raw workflow file, counts lines, fingerprints which third-party Actions are used, and assigns a 0–100 quality score. Results are sorted high-to-low and pushed to the dataset.

### Why use it?

- **Bootstrap new repos faster.** Find a battle-tested deploy workflow used by a 100k-star project and adapt it, instead of writing from scratch.
- **Catalog the Claude Code ecosystem.** This is currently the easiest way to see real-world `anthropics/claude-code-action` usage patterns across GitHub.
- **Audit your own stack.** Compare your workflows to top-rated equivalents in your category and find missing pieces (cache, security scanning, etc.).

### How to use it

1. Open the Input tab and pick your categories (default: all four).
2. Set `minRepoStars` to filter out hobby repos (default: 500).
3. Set `maxResults` (default: 30) — higher = slower because of GitHub rate limits.
4. **Important**: set a `GITHUB_TOKEN` environment variable (a fine-grained PAT with public_repo scope is enough). The GitHub code search API requires auth.
5. Click Start and inspect the Output tab when finished.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `categoryFilter` | array | `["deployment", "testing", "security", "claude-code"]` | Categories to fetch |
| `minRepoStars` | int | `500` | Skip workflows whose repo has fewer stars |
| `maxResults` | int | `30` | Stop after this many qualified templates |

### Output

Each item in the dataset:

```json
{
  "repo": "vercel/next.js",
  "workflowPath": ".github/workflows/deploy.yml",
  "workflowName": "Deploy to Production",
  "categories": ["deployment", "vercel"],
  "lineCount": 87,
  "toolsUsed": ["vercel-action", "node-setup", "cache"],
  "rawUrl": "https://raw.githubusercontent.com/vercel/next.js/canary/.github/workflows/deploy.yml",
  "repoStars": 128000,
  "repoLanguage": "JavaScript",
  "repoPushedAt": "2026-05-19T03:12:44Z",
  "qualityScore": 95
}
````

You can download the dataset in JSON, CSV, HTML, or Excel. A Markdown summary (`workflow-templates.md`) is also written to the default key-value store.

### Data table

| Field | Meaning |
|---|---|
| `repo` | The repository hosting the workflow |
| `workflowName` | Value of `name:` at the top of the workflow YAML |
| `categories` | Inferred categories (primary + detected from content) |
| `toolsUsed` | Fingerprinted Actions: `vercel-action`, `docker`, `claude-code`, `codeql`, etc. |
| `lineCount` | Workflow YAML line count |
| `qualityScore` | 0–100, weighted by stars / size / tool diversity / has name / freshness |

### Pricing / Cost estimation

Each run hits GitHub's code-search API four times (once per category), plus one repo-meta call and one raw-file fetch per candidate. With default settings (`maxResults: 30`) and a personal `GITHUB_TOKEN`, expect ~150 API calls total and well under one compute unit per run on Apify Free.

### Tips

- **Rate limit**: GitHub gives 30 code-search requests/min, 5,000 REST requests/hour for an authenticated user. Bump `maxResults` carefully.
- **Boost recall**: lower `minRepoStars` to find smaller-but-recently-active repos.
- **Claude Code only**: pass `["claude-code"]` as `categoryFilter` for an ecosystem map.

### FAQ, disclaimers, and support

- **Is scraping GitHub legal?** This Actor uses GitHub's official REST API. You must comply with GitHub's [API terms](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service).
- **GitHub code search misses some results.** GitHub code search indexes default branches of public repos only. Some workflows on non-default branches will be missed.
- **Issues / feature requests**: open an issue at [github.com/ianymu](https://github.com/ianymu).

Author: Ian Mu — One-person AI company experiments at [github.com/ianymu](https://github.com/ianymu).

# Actor input Schema

## `categoryFilter` (type: `array`):

Categories to fetch. Supported: deployment, testing, security, claude-code.

## `minRepoStars` (type: `integer`):

Skip workflows whose parent repo has fewer than this many stars.

## `maxResults` (type: `integer`):

Stop after this many qualified templates.

## Actor input object example

```json
{
  "categoryFilter": [
    "deployment",
    "testing",
    "security",
    "claude-code"
  ],
  "minRepoStars": 500,
  "maxResults": 30
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("ianymu/gh-action-template-finder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("ianymu/gh-action-template-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call ianymu/gh-action-template-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ianymu/gh-action-template-finder",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "GitHub Action Template Finder",
        "description": "Find high-quality GitHub Actions workflow templates by category (deployment / testing / security / Claude Code). Each workflow gets a quality score based on parent repo stars, complexity, tool diversity, and freshness. Useful for DevOps teams bootstrapping new repos.",
        "version": "0.0",
        "x-build-id": "yf6oLu3ynUxd3mBb6"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ianymu~gh-action-template-finder/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ianymu-gh-action-template-finder",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/ianymu~gh-action-template-finder/runs": {
            "post": {
                "operationId": "runs-sync-ianymu-gh-action-template-finder",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/ianymu~gh-action-template-finder/run-sync": {
            "post": {
                "operationId": "run-sync-ianymu-gh-action-template-finder",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "categoryFilter": {
                        "title": "Workflow categories to search",
                        "type": "array",
                        "description": "Categories to fetch. Supported: deployment, testing, security, claude-code.",
                        "default": [
                            "deployment",
                            "testing",
                            "security",
                            "claude-code"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "minRepoStars": {
                        "title": "Minimum parent repo stars",
                        "minimum": 0,
                        "maximum": 200000,
                        "type": "integer",
                        "description": "Skip workflows whose parent repo has fewer than this many stars.",
                        "default": 500
                    },
                    "maxResults": {
                        "title": "Max workflow templates to return",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Stop after this many qualified templates.",
                        "default": 30
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
