{"id":15395543,"url":"https://github.com/platane/github-secret-dotenv","last_synced_at":"2026-03-10T05:03:43.863Z","repository":{"id":40728341,"uuid":"239653515","full_name":"Platane/github-secret-dotenv","owner":"Platane","description":"🗝 upload secrets to github from your .env file","archived":false,"fork":false,"pushed_at":"2023-07-18T20:53:24.000Z","size":645,"stargazers_count":12,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T00:11:53.899Z","etag":null,"topics":["cli","dotenv","github","github-actions","github-secrets","secrets"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/github-secret-dotenv","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/Platane.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2020-02-11T01:50:50.000Z","updated_at":"2024-01-26T16:59:46.000Z","dependencies_parsed_at":"2024-10-19T03:06:47.132Z","dependency_job_id":"ac06c276-31d3-4f5c-a0b8-b1debdeea5ee","html_url":"https://github.com/Platane/github-secret-dotenv","commit_stats":{"total_commits":80,"total_committers":3,"mean_commits":"26.666666666666668","dds":0.08750000000000002,"last_synced_commit":"b83b371b20492cc02afa2e2446c1e6b13c136f79"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Fgithub-secret-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Fgithub-secret-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Fgithub-secret-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Fgithub-secret-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Platane","download_url":"https://codeload.github.com/Platane/github-secret-dotenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173085,"owners_count":21224483,"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":["cli","dotenv","github","github-actions","github-secrets","secrets"],"created_at":"2024-10-01T15:28:46.057Z","updated_at":"2026-03-10T05:03:43.821Z","avatar_url":"https://github.com/Platane.png","language":"TypeScript","readme":"# Github Secret DotEnv _(github-secret-dotenv)_\n\n![type definitions](https://img.shields.io/npm/types/typescript?style=flat-square)\n![code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)\n[![npm](https://img.shields.io/npm/v/github-secret-dotenv?style=flat-square)](https://www.npmjs.com/package/github-secret-dotenv)\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Platane/github-secret-dotenv/main?style=flat-square\u0026label=test)](https://github.com/Platane/github-secret-dotenv/actions?query=workflow%3Amain)\n\n\u003e Upload secrets to github from your .env file\n\n![terminal screenshot](./doc/terminal-screenshot.png)\n\n# Usage\n\n## cli\n\n```sh\nnpx github-secret-dotenv \\\n\n  --repository platane/github-secret-dotenv \\\n  # The github repository (\u003cowner\u003e/\u003crepo\u003e)\n  # If omitted, read it from the package.json\n\n  --dotEnvFilename ./.env \\\n  # The .env file to read\n  # Default to .env\n\n  --githubAccessToken xxxx\n  # Your github access token\n  # If omitted, read it from GITHUB_ACCESS_TOKEN env var\n  # Generate one from https://github.com/settings/tokens/new\n  # Must have permissions [public_repo  read:public_key]\n\n  --delete\n  # When set, remove all secrets that are not in the .env\n```\n\n## node api\n\n```typescript\nimport { readAndUpload, createSecretUpdater } from \"github-secret-dotenv\";\n\n// upload the content of .env as secrets for the github repository\nawait readAndUpload({\n  owner: \"platane\",\n  repo: \"github-secret-dotenv\",\n  githubAccessToken: \"xxxx\",\n  dotEnvFilename: \".env\",\n});\n\n// upload arbitrary secret to the github repository\nconst updateSecret = createSecretUpdater({\n  owner: \"platane\",\n  repo: \"github-secret-dotenv\",\n  githubAccessToken: \"xxxx\",\n});\nupdateSecret(\"MY_SECRET\", \"XXXX\");\n```\n\n# License\n\n[MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatane%2Fgithub-secret-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplatane%2Fgithub-secret-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatane%2Fgithub-secret-dotenv/lists"}