A GitHub Action that scrapes dependent repository counts from GitHub's dependents page using Playwright browser automation.
- uses: devops-actions/load-dependents-count@28e45ff9cc0e7b7caf85b76265e5b3617c3b80b1 # v0.0.1with:
repos: '["devops-actions/action-get-tag", "devops-actions/actionlint"]'output-file: repo-usage.jsonOption 2: Scope file (compatible with openssf-scorecard-monitor)
- uses: devops-actions/load-dependents-count@28e45ff9cc0e7b7caf85b76265e5b3617c3b80b1 # v0.0.1with:
scope-file: ossf-reporting/scope.jsonoutput-file: ossf-reporting/repo-usage.jsonsteps:
- uses: devops-actions/load-dependents-count@28e45ff9cc0e7b7caf85b76265e5b3617c3b80b1 # v0.0.1id: dependentswith:
repos: '["devops-actions/action-get-tag"]'
- run: echo "Results: ${{ steps.dependents.outputs.results }}"
- run: cat ${{ steps.dependents.outputs.output-file }}| Input | Required | Default | Description |
|---|---|---|---|
repos | One of repos or scope-file | JSON array of "org/repo" strings | |
scope-file | One of repos or scope-file | Path to a scope.json file | |
output-file | No | repo-usage.json | Path to write the JSON results |
Both repos and scope-file can be provided simultaneously — results are merged (deduplicated).
| Output | Description |
|---|---|
results | JSON string with dependent counts, e.g. {"org/repo": 123} |
output-file | Path to the generated JSON file |
{
"devops-actions/action-get-tag": 677,
"devops-actions/actionlint": 311
}The scope file follows the same format as openssf-scorecard-monitor:
{
"github.com": {
"devops-actions": {
"included": [
"action-get-tag",
"actionlint"
]
}
}
}The action automatically writes a markdown summary table to the GitHub Actions step summary, showing each repository and its dependent count.