{"id":35154569,"url":"https://github.com/7mind/ghpub","last_synced_at":"2026-05-23T14:31:20.590Z","repository":{"id":98361063,"uuid":"581618724","full_name":"7mind/ghpub","owner":"7mind","description":"NodeJS script which sets up a repository with secrets for Scala/Nuget/etc publishing","archived":false,"fork":false,"pushed_at":"2024-06-18T16:42:55.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-18T21:09:57.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7mind.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":"2022-12-23T18:26:37.000Z","updated_at":"2024-06-18T16:42:59.000Z","dependencies_parsed_at":"2023-07-10T14:15:55.322Z","dependency_job_id":null,"html_url":"https://github.com/7mind/ghpub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7mind/ghpub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7mind%2Fghpub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7mind%2Fghpub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7mind%2Fghpub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7mind%2Fghpub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7mind","download_url":"https://codeload.github.com/7mind/ghpub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7mind%2Fghpub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33400245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-12-28T16:18:12.628Z","updated_at":"2026-05-23T14:31:20.583Z","avatar_url":"https://github.com/7mind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghpub\n\nNodeJS script which sets up a repository with secrets for Scala/Nuget/etc publishing\n\n\n## Intended use\n\n1. Have Hashicorp Vault address set in `VAULT_ADDR` environment variable with LDAP authentication configured,\n2. Run `export VAULT_TOKEN=$(vault login --method=ldap --field token username=$USER)`. If you use other login method, change the command accordingly. If you use LDAP, you may just run `source auth-ldap.sh`.\n3. Run `./pub-prepare --owner GITHUBPREFIX --repo GITHUBREPO`\n\nThe script expects Vault to have mount `ghpub` configured with versioned v2 KV storage. The mount name can be altered with a command line option (use `--help`)\n\n## Fill the vault\n\n### Automatically\n\n```bash\n./pub-prepare --owner 7mind --repo test --writeVault true --readVault false\n```\n\nThis will read the secrets from terminal and write them into vault.\n\n### Manually\n\nVault may be provisioned with a script like:\n\n```bash\n#!/usr/bin/env bash\n\nset -x\nset -e\n\nvault kv put -mount=$VPATH github token=ghp_blah123\nvault kv put -mount=$VPATH nuget token=oyblah123\nvault kv put -mount=$VPATH sonatype user=7mind password=blah123 email=team@7mind.io\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7mind%2Fghpub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7mind%2Fghpub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7mind%2Fghpub/lists"}