{"id":27351879,"url":"https://github.com/sec-ml/bluesky-handle-updater","last_synced_at":"2025-08-22T11:10:55.913Z","repository":{"id":286014357,"uuid":"960087045","full_name":"sec-ml/bluesky-handle-updater","owner":"sec-ml","description":"GitHub Action to automatically update Bluesky handle based on GitHub activity","archived":false,"fork":false,"pushed_at":"2025-06-15T13:34:39.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T14:58:46.321Z","etag":null,"topics":["actions","bluesky-api","bluesky-handle","cloudflare-api","github-api"],"latest_commit_sha":null,"homepage":"","language":null,"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/sec-ml.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-03T20:50:53.000Z","updated_at":"2025-06-15T13:34:42.000Z","dependencies_parsed_at":"2025-04-03T21:40:51.776Z","dependency_job_id":null,"html_url":"https://github.com/sec-ml/bluesky-handle-updater","commit_stats":null,"previous_names":["sec-ml/bluesky-handle-updater"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/sec-ml/bluesky-handle-updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sec-ml%2Fbluesky-handle-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sec-ml%2Fbluesky-handle-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sec-ml%2Fbluesky-handle-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sec-ml%2Fbluesky-handle-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sec-ml","download_url":"https://codeload.github.com/sec-ml/bluesky-handle-updater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sec-ml%2Fbluesky-handle-updater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271628166,"owners_count":24792821,"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-22T02:00:08.480Z","response_time":65,"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":["actions","bluesky-api","bluesky-handle","cloudflare-api","github-api"],"created_at":"2025-04-12T20:54:01.963Z","updated_at":"2025-08-22T11:10:55.889Z","avatar_url":"https://github.com/sec-ml.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto Update Bluesky Handle GitHub Action\n\nThis GitHub Action updates your [Bluesky](https://bsky.app/) handle based on your GitHub commit activity. For example:\n\n- `1.commit.today.example.com`\n- `30.commits.today.example.com`\n- `1.day.since.last.commit.example.com`\n- `42.days.since.last.commit.example.com`\n\nIt does this by:\n\n1. Checking GitHub API for recent commits (also checks private repositories if a GitHub token is provided)\n2. Getting current Bluesky handle via Bluesky API and comparing against proposed change -\u003e Skips remaining steps if no change required\n3. Creating DNS TXT record via Cloudflare API\n4. Pushing changed handle back to Bluesky via API\n5. (Optionally) cleaning up old TXT records\n\n**Warning: This is probably a bad idea, and created as a learning exercise! @ mentions to the root domain still seem to work, and visits to `bsky.app/profile/\u003cold handles\u003e` still seem to work if you don't cleanup old TXT records, but still: Use at your own risk. There's an option to cleanup unused records if you a) want to be tidy, and b) don't want anyone to find you.**\n\nIssues/PRs welcome, but I have no plans to spend more time on this. If you use this to do something cool let me know [@syslog.sh](https://bsky.app/profile/syslog.sh) _...if I haven't broken the link..._\n\n---\n\n## Repository Secrets\n\n`From this forked repo -\u003e Settings -\u003e Secrets and variables -\u003e Actions -\u003e New repository secret`\n\n| Name                   | Purpose                                            |\n| ---------------------- | -------------------------------------------------- |\n| `GH_TOKEN`             | **Optional**. GitHub token to access private repos |\n| `BLUESKY_EMAIL`        | Your Bluesky login email                           |\n| `BLUESKY_PASSWORD`     | Your Bluesky app password                          |\n| `CLOUDFLARE_API_TOKEN` | Cloudflare API token with DNS edit access          |\n| `CLOUDFLARE_ZONE_ID`   | Cloudflare Zone ID for your domain                 |\n\nImportant: Scope tokens as narrowly as possible.\n\nGitHub (optional) Token (Settings -\u003e Developer Settings -\u003e Personal access tokens):\n\n- For Classic token: `Repo` \u0026 `Read:User`\n- For Fine-grained token: Specify repos, or select all, then: `Contents: Read-only` (`Metadata: Read-only` is required but always set)\n\nCloudFlare Token (Profile -\u003e API Tokens -\u003e Create Tokens):\n\n- If using a template, choose `Edit zone DNS`\n- Ensure you set only the domain you are editing for the handle\n\nCloudFlare Zone ID: In CF dashboard, choose your domain, and zone ID should be listed on the page, under API\n\n---\n\n## Repository Variables\n\n`From this forked repo -\u003e Settings -\u003e Secrets and variables -\u003e Actions -\u003e Variables (tab) -\u003e New repository variable`\n\n| Name                                    | Example                | Description                                                                                                                                                                          |\n| --------------------------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `MY_DOMAIN`                             | `example.com`          | Your domain name                                                                                                                                                                     |\n| `GH_USERNAME`                           | `your-github-username` | GitHub username to check activity for                                                                                                                                                |\n| `KEEP_ATPROTO_RECORDS`                  | `_atproto.example.com` | **Optional**. Comma-separated list of `_atproto.*` records to preserve. If you're setting `CLEANUP_TXT_RECORDS` to `true`, you probably want to at least add `_atproto.\u003cyourdomain\u003e` |\n| `TEST_RUN` **Default:True**             | `true` or `false`      | **Optional (technically...)**. If `true` or not set, prints actions without making changes. Run this in test mode first, to ensure there are no auth/similar errors!                 |\n| `CLEANUP_TXT_RECORDS` **Default:False** | `true` or `false`      | **Optional**. If `true`, deletes unused `_atproto.*` TXT records                                                                                                                     |\n\n---\n\n## Schedule\n\n- A cron schedule (default: every 12 hours)\n- Manual dispatch via the Actions tab\n\n---\n\n## MIT License\n\nMIT License\n\nCopyright (c) 2025 sec-ml\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsec-ml%2Fbluesky-handle-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsec-ml%2Fbluesky-handle-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsec-ml%2Fbluesky-handle-updater/lists"}