{"id":22908218,"url":"https://github.com/yumemi-inc/environment-variables-action","last_synced_at":"2026-02-13T10:10:15.417Z","repository":{"id":169010410,"uuid":"644868728","full_name":"yumemi-inc/environment-variables-action","owner":"yumemi-inc","description":"Fetch environment variables without creating deployments.","archived":false,"fork":false,"pushed_at":"2025-02-12T00:57:34.000Z","size":961,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-08-08T05:45:53.014Z","etag":null,"topics":["continuous-deployment","environments","github-action"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/environment-variables-action","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yumemi-inc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-24T12:28:52.000Z","updated_at":"2025-02-12T00:57:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"247ed182-f951-4183-9a4a-4dc9a292a4dd","html_url":"https://github.com/yumemi-inc/environment-variables-action","commit_stats":null,"previous_names":["yumemi-inc/environment-variables-action"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/yumemi-inc/environment-variables-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumemi-inc%2Fenvironment-variables-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumemi-inc%2Fenvironment-variables-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumemi-inc%2Fenvironment-variables-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumemi-inc%2Fenvironment-variables-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yumemi-inc","download_url":"https://codeload.github.com/yumemi-inc/environment-variables-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumemi-inc%2Fenvironment-variables-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269740355,"owners_count":24467757,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["continuous-deployment","environments","github-action"],"created_at":"2024-12-14T03:20:07.568Z","updated_at":"2026-02-13T10:10:10.373Z","avatar_url":"https://github.com/yumemi-inc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Environment Variables Action\n\n\u003e [!WARNING]\n\u003e This is not an official product of YUMEMI Inc.\n\nFetch environment variables without creating deployments.\n\n\n## Why?\n\nWe can adopt [Environments](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)\nin cases of deployments using GitHub Actions. However, we sometimes need to use environment variables **before** the\ndeployment. Let's say you are applying Terraform stack via Actions. You don't need approval for the deployment in planning,\nbut running plan usually requires environment variables.\n\nUsing this action, you can use the environment variables from the workflow runs that is not attached to any environments.\nThus you can defer approval after planning, before applying your stack.\n\n\n## Getting Started\n\n### Prerequisites\n\n- GitHub PAT (Supports fine-graded tokens)\n  - As you know we usually can `${{ github.token }}` instead, but in this case we can not use it since the token does\n    not support `environments:read` scope.\n\n```yaml\nname: Terraform\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  plan:\n    runs-on: ubuntu-22.04\n    steps:\n      - uses: actions/checkout@v3\n\n      - id: env\n        uses: yumemi-inc/environment-variables-action@v1\n        with:\n          environment: staging\n          token: '${{ secrets.FETCH_ENVIRONMENTS_TOKEN }}'\n\n      - run: terraform plan\n        env:\n          AWS_PROFILE: '${{ steps.env.outputs.AWS_PROFILE }}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyumemi-inc%2Fenvironment-variables-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyumemi-inc%2Fenvironment-variables-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyumemi-inc%2Fenvironment-variables-action/lists"}