{"id":14970069,"url":"https://github.com/hashicorp/actions-generate-metadata","last_synced_at":"2025-10-19T09:32:35.282Z","repository":{"id":41809941,"uuid":"411743156","full_name":"hashicorp/actions-generate-metadata","owner":"hashicorp","description":"A GitHub action for generating metadata for CRT","archived":false,"fork":false,"pushed_at":"2024-09-30T02:26:44.000Z","size":68,"stargazers_count":4,"open_issues_count":4,"forks_count":5,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-03T07:04:00.171Z","etag":null,"topics":["crt"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hashicorp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-29T16:09:09.000Z","updated_at":"2024-07-15T17:07:57.000Z","dependencies_parsed_at":"2024-04-29T17:48:11.500Z","dependency_job_id":"3eb739f5-5eb5-4512-9d1b-97de83116dec","html_url":"https://github.com/hashicorp/actions-generate-metadata","commit_stats":{"total_commits":39,"total_committers":10,"mean_commits":3.9,"dds":0.6923076923076923,"last_synced_commit":"f6f1ca9cededa05d841a58d171064faf3de8ec74"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Factions-generate-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Factions-generate-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Factions-generate-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Factions-generate-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashicorp","download_url":"https://codeload.github.com/hashicorp/actions-generate-metadata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869615,"owners_count":16555447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crt"],"created_at":"2024-09-24T13:42:58.891Z","updated_at":"2025-10-19T09:32:29.988Z","avatar_url":"https://github.com/hashicorp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generate-metadata action\n\nThis action creates JSON file containing metadata information.\n\n## Example of the generated metadata.json file\n```json\n{\n\"repository\": \"consul-terraform-sync\",\n\"repositoryOwner\": \"hashicorp\",\n\"sha\": \"4671a6594f2a2650f066489a4fbfe35c3b1e3d35\",\n\"version\": \"1.0.3\",\n\"buildWorkflowId\": \"1284662138\"\n\"product\": \"consul\",\n\"branch\": \"main\",\n\n}\n```\n\n## Usage\n\nSee [action.yaml](https://github.com/hashicorp/actions-generate-metadata/blob/main/action.yml)\n\n### Basic usage example\n\n```yaml\n- name: Generate metadata file\n  uses: hashicorp/actions-generate-metadata@main\n  id: execute\n  with:\n    repository: consul-terraform-sync\n    version: 1.2.3\n```\n\n### Usage example to create metadata.json file using command in the version input\n```yaml\n- name: Generate metadata file\n  uses: hashicorp/actions-generate-metadata@main\n  id: execute\n  with:\n    repository: consul-terraform-sync\n    version: make version\n    metadataFileName: metadata.json\n```\n\n## Inputs\n\n* **`repository`** - (required). The repository name for collecting the metadata\n* **`version`** - (required). Indicates the version to be set in the metadata file. Can also accept the command which will set the version (e.g \"make version\")*\n\n* **`branch`** - (optional). Github Branch of changes\n* **`filePath`** - (optional). Existing path that denotes the location of the metadata file to be created. The action will not create specified directory if it not exist. Default is set to Github action root path.\n* **`product`** - (optional). The product binary name\n* **`repositoryOwner`** - (optional). The repository owner (organization or user). Default is set to \"hashicorp\" organization\n* **`metadataFileName`** - (optional). The name of the file produced by the action. The generated file will have a JSON format. Default is set to \"metadata.json\"\n\n*Example command for the `version` input is provided [here](https://github.com/hashicorp/actions-generate-metadata#create-metadatajson-file-using-command-in-the-version-input)\n\n\n## Outputs\n* `filepath` - The path where `metadataFileName` was created after action finished executing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashicorp%2Factions-generate-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashicorp%2Factions-generate-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashicorp%2Factions-generate-metadata/lists"}