{"id":45186382,"url":"https://github.com/boringcache/action-core","last_synced_at":"2026-03-11T12:26:56.334Z","repository":{"id":338972700,"uuid":"1139773675","full_name":"boringcache/action-core","owner":"boringcache","description":"Shared core library for BoringCache GitHub Actions.","archived":false,"fork":false,"pushed_at":"2026-02-23T20:46:58.000Z","size":436,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-24T03:16:54.958Z","etag":null,"topics":["caching","ci","cicd","dependency-management","github-actions","utilities"],"latest_commit_sha":null,"homepage":"https://boringcache.com","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/boringcache.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-22T11:54:16.000Z","updated_at":"2026-02-23T20:46:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/boringcache/action-core","commit_stats":null,"previous_names":["boringcache/action-core"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/boringcache/action-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringcache%2Faction-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringcache%2Faction-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringcache%2Faction-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringcache%2Faction-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boringcache","download_url":"https://codeload.github.com/boringcache/action-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boringcache%2Faction-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29892074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T09:48:51.284Z","status":"ssl_error","status_checked_at":"2026-02-27T09:48:43.992Z","response_time":57,"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":["caching","ci","cicd","dependency-management","github-actions","utilities"],"created_at":"2026-02-20T11:02:27.635Z","updated_at":"2026-03-11T12:26:56.315Z","avatar_url":"https://github.com/boringcache.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @boringcache/action-core\n\nShared helpers used by BoringCache GitHub Actions.\n\nThis package is for action authors and internal integrations. If you are setting up a workflow, start with the public docs or one of the published actions instead.\n\n## Install\n\n```bash\nnpm install @boringcache/action-core\n```\n\n## Main helpers\n\n- `ensureBoringCache(options)`: install or reuse the CLI on the runner.\n- `execBoringCache(args, options)`: run the CLI from an action.\n- `getAuthTokens()`: read the configured restore/save/legacy tokens.\n- `hasRestoreToken()` / `hasSaveToken()`: capability-aware checks for action logic.\n- `warnIfUsingLegacyApiToken()`: compatibility warning for old workflows.\n\n## Auth model\n\n- Restore flows prefer `BORINGCACHE_RESTORE_TOKEN`, then `BORINGCACHE_SAVE_TOKEN`, then `BORINGCACHE_API_TOKEN`.\n- Save flows prefer `BORINGCACHE_SAVE_TOKEN`, then `BORINGCACHE_API_TOKEN`.\n- Combined restore/save actions should skip save cleanly when no save-capable token is configured.\n- Proxy-backed actions should downgrade to read-only when only a restore-capable token is available and the backend supports it.\n- `BORINGCACHE_API_TOKEN` is a legacy fallback, not the preferred path for new workflows.\n\n## Docs\n\n- [GitHub Actions docs](https://boringcache.com/docs#action)\n- [GitHub Actions auth and trust model](https://boringcache.com/docs#actions-auth)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboringcache%2Faction-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboringcache%2Faction-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboringcache%2Faction-core/lists"}