Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Load Dependents Count

A GitHub Action that scrapes dependent repository counts from GitHub's dependents page using Playwright browser automation.

Usage

Option 1: Inline repo list

- uses: devops-actions/load-dependents-count@28e45ff9cc0e7b7caf85b76265e5b3617c3b80b1 # v0.0.1with:
repos: '["devops-actions/action-get-tag", "devops-actions/actionlint"]'output-file: repo-usage.json

Option 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.json

Using the outputs

steps:
- 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 }}

Inputs

InputRequiredDefaultDescription
reposOne of repos or scope-fileJSON array of "org/repo" strings
scope-fileOne of repos or scope-filePath to a scope.json file
output-fileNorepo-usage.jsonPath to write the JSON results

Both repos and scope-file can be provided simultaneously — results are merged (deduplicated).

Outputs

OutputDescription
resultsJSON string with dependent counts, e.g. {"org/repo": 123}
output-filePath to the generated JSON file

Output file format

{
"devops-actions/action-get-tag": 677,
"devops-actions/actionlint": 311
}

Scope file format

The scope file follows the same format as openssf-scorecard-monitor:

{
"github.com": {
"devops-actions": {
"included": [
"action-get-tag",
"actionlint"
]
}
}
}

Step Summary

The action automatically writes a markdown summary table to the GitHub Actions step summary, showing each repository and its dependent count.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages