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.1
with:
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.1
with:
scope-file: ossf-reporting/scope.json
output-file: ossf-reporting/repo-usage.jsonsteps:
- uses: devops-actions/load-dependents-count@28e45ff9cc0e7b7caf85b76265e5b3617c3b80b1 # v0.0.1
id: dependents
with:
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.