lfreleng-actions/🛠️ Repository Metadata

Gathers repository metadata

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 6, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: lfreleng-actions/repository-metadata-action@61e837ecf6a21ef991c14991b43560f592a50a24 # v0.2.3

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github_tokenGitHub token for API accessno""
debugEnable debug mode for verbose outputnofalse
github_summaryGenerate GitHub execution environment summary in GITHUB_STEP_SUMMARYnofalse
artifact_uploadUpload metadata as a workflow artifact (JSON/YAML formats)notrue
artifact_formatsComma-separated list of formats to upload (json, yaml)nojson,yaml
change_detectionChanged files detection method: 'git' or 'github_api' (defaults to 'github_api' when token provided, 'git' otherwise)no""
git_fetch_depthDepth for git fetch --deepen when shallow clone needs more historyno15
gerrit_summaryGenerate Gerrit parameters summary in GITHUB_STEP_SUMMARYnotrue
files_summaryGenerate changed files summary in GITHUB_STEP_SUMMARYnofalse
gerrit_include_commentInclude Gerrit comment in summaries and JSON/YAML outputs (may contain sensitive data; use with care)nofalse
namedescription
repository_ownerReturns the name of the GitHub organization
repository_nameReturns the name of the GitHub repository
repository_full_nameReturns the full repository name (owner/name)
is_publicReturns true if the repository is public
is_privateReturns true if the repository is private
tag_push_eventReturns true if the event was triggered by a version tag push
is_tag_pushReturns true if the event is a tag push
is_branch_pushReturns true if the event is a branch push
is_pull_requestReturns true if the event is a pull request
is_releaseReturns true if the event is a release
is_scheduleReturns true if the event is scheduled
is_workflow_dispatchReturns true if the event is manually triggered
event_nameThe name of the event that triggered the workflow
branch_nameReturns the branch name (empty for tag pushes)
is_default_branchReturns true if running on the default branch
is_main_branchReturns true if running on main or master branch
tag_nameReturns the tag name (empty if not a tag)
commit_shaFull commit SHA
commit_sha_shortShort commit SHA (first 7 characters)
commit_messageCommit message title
commit_authorCommit author name
pr_numberPull request number (empty if not a PR)
pr_source_branchPull request source branch (head ref)
pr_target_branchPull request target branch (base ref)
is_forkReturns true if pull request is from a fork
pr_commits_countNumber of commits in the pull request
actorGitHub actor (user who triggered the workflow)
actor_idGitHub actor ID
cache_keyGenerated cache key based on repository and commit
cache_restore_keyGenerated cache restore key prefix
changed_filesList of changed files (space-separated, for PRs and pushes)
changed_files_countNumber of changed files
changed_files_addedList of added files (space-separated)
changed_files_added_countNumber of added files
changed_files_modifiedList of modified files (space-separated)
changed_files_modified_countNumber of modified files
changed_files_removedList of removed files (space-separated)
changed_files_removed_countNumber of removed files
changed_files_last_commitList of changed files in last commit (space-separated)
changed_files_last_commit_countNumber of changed files in last commit
changed_files_last_commit_addedList of added files in last commit (space-separated)
changed_files_last_commit_added_countNumber of added files in last commit
changed_files_last_commit_modifiedList of modified files in last commit (space-separated)
changed_files_last_commit_modified_countNumber of modified files in last commit
changed_files_last_commit_removedList of removed files in last commit (space-separated)
changed_files_last_commit_removed_countNumber of removed files in last commit
metadata_jsonAll metadata as a JSON object
metadata_yamlAll metadata as a YAML object
artifact_pathPath to the metadata artifact files (if uploaded)
artifact_suffixUnique suffix for artifact naming (to avoid conflicts)
gerrit_jsonGerrit metadata as JSON (from input or built from gerrit_to_platform inputs)