{"id":20535867,"url":"https://github.com/cyb3r-jak3/action-cloudflare-cache","last_synced_at":"2025-04-14T07:12:54.628Z","repository":{"id":42494432,"uuid":"384829985","full_name":"Cyb3r-Jak3/action-cloudflare-cache","owner":"Cyb3r-Jak3","description":"Github Action to purge Cloudflare cache","archived":false,"fork":false,"pushed_at":"2024-06-21T21:05:59.000Z","size":1017,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T20:51:17.959Z","etag":null,"topics":["cloudflare","cloudflare-api","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/cloudflare-cache-cleaner","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cyb3r-Jak3.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":"2021-07-11T00:39:16.000Z","updated_at":"2025-02-01T18:58:07.000Z","dependencies_parsed_at":"2023-01-11T17:22:12.904Z","dependency_job_id":"70a57194-d79e-4ea2-90f9-7e585edad61d","html_url":"https://github.com/Cyb3r-Jak3/action-cloudflare-cache","commit_stats":{"total_commits":18,"total_committers":5,"mean_commits":3.6,"dds":0.4444444444444444,"last_synced_commit":"76102f64d244ba5d0a1026a45f5d339b6a66c295"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Faction-cloudflare-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Faction-cloudflare-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Faction-cloudflare-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Faction-cloudflare-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cyb3r-Jak3","download_url":"https://codeload.github.com/Cyb3r-Jak3/action-cloudflare-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837289,"owners_count":21169374,"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":["cloudflare","cloudflare-api","github-actions"],"created_at":"2024-11-16T00:34:29.840Z","updated_at":"2025-04-14T07:12:54.595Z","avatar_url":"https://github.com/Cyb3r-Jak3.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare Cache Cleaner\n\nA Github Action that clears cache from Cloudflare. Useful for after deployment as new code will be pulled from your server rather than served from Cloudflare.\n\n\n## Configuration\n\n**All senstive information like zones and tokens should be stored with [encrypted secrets](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets)**\n\n### Zone ID\n\nYour zone ID will be on the bottom right of the overview page.\n\n![Image of blurred out Zone ID](.github/imgs/Cloudflare_Zone_ID.png)\n\n### Setting up Authentication\n\nThere are two ways that you can provide authentication for Cloudflare, Global Token or API Token.  **It is strongly recommended to use API Token over Global API Key**. To get a walk through guide of getting set up with Authentication then check out the [wiki](https://github.com/Cyb3r-Jak3/action-cloudflare-cache/wiki/Setting-up-Authentication). \n#### API Token permissons.\nThe only permissions required for an API Token is `Zone -\u003e Cache Purge -\u003e Purge`. You can set this for all zones but best pratice would be restricting to the zone in use. Right now there is no method for running with multiple zones.\n\n\n### Example workflow\n\n\n```yaml\n\nname: Deploy Site\non: push\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n\n    # Put steps here to build your site, check, and deploy your site.\n\n    - name: Clear Cloudflare cache\n      uses: Cyb3r-Jak3/action-cloudflare-cache@\u003cLatest Release\u003e\n      with:\n        # Zone is required by both methods\n        zone: ${{ secrets.CLOUDFLARE_ZONE }}\n\n        # Using API Token\n        api_token: ${{ secrets.CLOUDFLARE_TOKEN }}\n\n        # Using Global Token\n        email: ${{ secrets.CLOUDFLARE_EMAIL }}\n        global_token: ${{ secrets.CLOUDFLARE_KEY }}\n```\n\n## Keep up-to-date with GitHub Dependabot\n\nSince [Dependabot](https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-github-dependabot)\nhas [native GitHub Actions support](https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem),\nto enable it on your GitHub repo all you need to do is add the `.github/dependabot.yml` file:\n\n```yaml\nversion: 2\nupdates:\n  # Maintain dependencies for GitHub Actions\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"daily\"\n```\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyb3r-jak3%2Faction-cloudflare-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyb3r-jak3%2Faction-cloudflare-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyb3r-jak3%2Faction-cloudflare-cache/lists"}