lfreleng-actions/🛠️ Repository Metadata
Gathers repository metadata
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 6, 2026
- License
- None
Pinned Snippet
uses: lfreleng-actions/repository-metadata-action@61e837ecf6a21ef991c14991b43560f592a50a24 # v0.2.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token for API access | no | "" |
| debug | Enable debug mode for verbose output | no | false |
| github_summary | Generate GitHub execution environment summary in GITHUB_STEP_SUMMARY | no | false |
| artifact_upload | Upload metadata as a workflow artifact (JSON/YAML formats) | no | true |
| artifact_formats | Comma-separated list of formats to upload (json, yaml) | no | json,yaml |
| change_detection | Changed files detection method: 'git' or 'github_api' (defaults to 'github_api' when token provided, 'git' otherwise) | no | "" |
| git_fetch_depth | Depth for git fetch --deepen when shallow clone needs more history | no | 15 |
| gerrit_summary | Generate Gerrit parameters summary in GITHUB_STEP_SUMMARY | no | true |
| files_summary | Generate changed files summary in GITHUB_STEP_SUMMARY | no | false |
| gerrit_include_comment | Include Gerrit comment in summaries and JSON/YAML outputs (may contain sensitive data; use with care) | no | false |
Outputs
| name | description |
|---|---|
| repository_owner | Returns the name of the GitHub organization |
| repository_name | Returns the name of the GitHub repository |
| repository_full_name | Returns the full repository name (owner/name) |
| is_public | Returns true if the repository is public |
| is_private | Returns true if the repository is private |
| tag_push_event | Returns true if the event was triggered by a version tag push |
| is_tag_push | Returns true if the event is a tag push |
| is_branch_push | Returns true if the event is a branch push |
| is_pull_request | Returns true if the event is a pull request |
| is_release | Returns true if the event is a release |
| is_schedule | Returns true if the event is scheduled |
| is_workflow_dispatch | Returns true if the event is manually triggered |
| event_name | The name of the event that triggered the workflow |
| branch_name | Returns the branch name (empty for tag pushes) |
| is_default_branch | Returns true if running on the default branch |
| is_main_branch | Returns true if running on main or master branch |
| tag_name | Returns the tag name (empty if not a tag) |
| commit_sha | Full commit SHA |
| commit_sha_short | Short commit SHA (first 7 characters) |
| commit_message | Commit message title |
| commit_author | Commit author name |
| pr_number | Pull request number (empty if not a PR) |
| pr_source_branch | Pull request source branch (head ref) |
| pr_target_branch | Pull request target branch (base ref) |
| is_fork | Returns true if pull request is from a fork |
| pr_commits_count | Number of commits in the pull request |
| actor | GitHub actor (user who triggered the workflow) |
| actor_id | GitHub actor ID |
| cache_key | Generated cache key based on repository and commit |
| cache_restore_key | Generated cache restore key prefix |
| changed_files | List of changed files (space-separated, for PRs and pushes) |
| changed_files_count | Number of changed files |
| changed_files_added | List of added files (space-separated) |
| changed_files_added_count | Number of added files |
| changed_files_modified | List of modified files (space-separated) |
| changed_files_modified_count | Number of modified files |
| changed_files_removed | List of removed files (space-separated) |
| changed_files_removed_count | Number of removed files |
| changed_files_last_commit | List of changed files in last commit (space-separated) |
| changed_files_last_commit_count | Number of changed files in last commit |
| changed_files_last_commit_added | List of added files in last commit (space-separated) |
| changed_files_last_commit_added_count | Number of added files in last commit |
| changed_files_last_commit_modified | List of modified files in last commit (space-separated) |
| changed_files_last_commit_modified_count | Number of modified files in last commit |
| changed_files_last_commit_removed | List of removed files in last commit (space-separated) |
| changed_files_last_commit_removed_count | Number of removed files in last commit |
| metadata_json | All metadata as a JSON object |
| metadata_yaml | All metadata as a YAML object |
| artifact_path | Path to the metadata artifact files (if uploaded) |
| artifact_suffix | Unique suffix for artifact naming (to avoid conflicts) |
| gerrit_json | Gerrit metadata as JSON (from input or built from gerrit_to_platform inputs) |