{"id":44238181,"url":"https://github.com/angrido/purge-camo-cache","last_synced_at":"2026-02-15T18:01:18.014Z","repository":{"id":287527145,"uuid":"960566606","full_name":"Angrido/Purge-Camo-Cache","owner":"Angrido","description":"Purge Camo Cache refreshes cached images from camo.githubusercontent.com, ensuring updates are instantly visible","archived":false,"fork":false,"pushed_at":"2025-09-14T09:54:52.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-10T13:57:44.414Z","etag":null,"topics":["githubusercontent","purgecache"],"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/Angrido.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-04-04T16:53:34.000Z","updated_at":"2025-09-14T09:54:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"8edfa0c3-ea02-45c6-b2ed-c553763bc79d","html_url":"https://github.com/Angrido/Purge-Camo-Cache","commit_stats":null,"previous_names":["angrido/purge-camo-cache"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Angrido/Purge-Camo-Cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angrido%2FPurge-Camo-Cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angrido%2FPurge-Camo-Cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angrido%2FPurge-Camo-Cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angrido%2FPurge-Camo-Cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Angrido","download_url":"https://codeload.github.com/Angrido/Purge-Camo-Cache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angrido%2FPurge-Camo-Cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29486050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T15:33:17.885Z","status":"ssl_error","status_checked_at":"2026-02-15T15:32:53.698Z","response_time":118,"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":["githubusercontent","purgecache"],"created_at":"2026-02-10T10:22:18.319Z","updated_at":"2026-02-15T18:01:18.007Z","avatar_url":"https://github.com/Angrido.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/GitHub-Action-2088FF?logo=github-actions\u0026logoColor=white\" alt=\"GitHub Action\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green?logo=opensourceinitiative\u0026logoColor=white\" alt=\"MIT License\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e🔄 Purge Camo Cache\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eKeep your GitHub images fresh!\u003c/b\u003e\u003cbr/\u003e\n  A GitHub Action that purges cached images served via \u003ccode\u003ecamo.githubusercontent.com\u003c/code\u003e.\n\u003c/p\u003e\n\n---\n\n## ❓ Why?\n\nGitHub uses **Camo** as a caching proxy to serve images securely. But Camo doesn't refresh images automatically — so your badges and images can stay stale for hours. This action forces a cache purge so updates show up instantly. ⚡\n\n## 🚀 Quick Start\n\nAdd this workflow to your repository:\n\n```yaml\nname: Purge Camo Cache\n\non:\n  push:\n    branches:\n      - main\n  schedule:\n    - cron: '0 */2 * * *'\n\njobs:\n  purge-camo-cache:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Purge Camo Cache\n        uses: Angrido/Purge-Camo-Cache@v1.3.0\n```\n\n🔒 For **private repositories**, pass a token with read access:\n\n```yaml\n      - name: Purge Camo Cache\n        uses: Angrido/Purge-Camo-Cache@v1.3.0\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## 📥 Inputs\n\n| Name    | Required | Default              | Description                       |\n|---------|----------|----------------------|-----------------------------------|\n| `token` | No       | `${{ github.token }}` | 🔑 GitHub token for authentication. |\n\n## ⚙️ How It Works\n\n1. 🌿 Detects the current branch using `tj-actions/branch-names`.\n2. 🔍 Fetches the repository page and extracts all `camo.githubusercontent.com` image URLs.\n3. 🧹 Sends a `PURGE` request to each URL to invalidate the cache.\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ by \u003ca href=\"https://github.com/Angrido\"\u003eAngrido\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrido%2Fpurge-camo-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangrido%2Fpurge-camo-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrido%2Fpurge-camo-cache/lists"}