Why Deleting a Public Gitea Branch Left Exposed Actions Logs Behind
A Public Branch Is a Public CI Surface
The repository was public. The branch was not meant to be. On 2026-12-03, a branch carrying workflow files appeared on a public Gitea repository on the infrastructure I manage. It stayed reachable from 09:26 to 23:46 UTC — 14 hours and 20 minutes. Before I removed it, Cloudflare recorded 35 external fetches of workflow files and 11 external fetches of the Actions log API. The branch was small; the audience was not.
Gitea treated the branch as part of the public repository. That made three entry points readable without a session:
- the branch’s workflow files under
.gitea/workflows/; - the Actions run list for that branch;
- the logs endpoint for each completed run.
None required a login. This is not a Gitea-specific bug. In any forge that inherits visibility from the repository, a branch in a public repository is itself public. A workflow file written to that branch is a publication, even when the job behind it only runs a check.
The Two Windows Were Not the Same Window
Two timelines overlapped, and confusing them changes what the evidence can prove.
The API window ran from 2026-12-03 07:28:48Z to 10:25:13Z. It contained 786 requests and 38 writes: 22 POSTs, 12 PUTs and 4 DELETEs. The request paths covered 22 private repositories and 47 files. Those names appeared in API paths; the public branch did not clone the repositories.
The public window ran from 09:26 to 23:46 UTC. It contained the branch’s 10 workflow files and 26 consecutive Actions runs. The workflow files, the run list and the logs endpoint were all readable without a session. The 35 external fetches were requests for workflow files; the run list and logs endpoint were the other public surfaces.
| Surface | What it exposed | What it did not prove |
|---|---|---|
| Workflow files | Job names, commands, environment references | That every referenced secret had a value |
| Actions runs | Run IDs, branch, status, timestamps | That every run executed successfully |
| Actions logs | Command output and environment echoes | That the log was downloaded by a unique person |
| API paths | 22 private repository names, 47 file paths | That every repository object was read |
The 26 runs were the public log surface. The workflow set grew to ten files as the branch was edited. The API writes that created the branch and the workflows were part of the 38-write window; the public reads were the later, separate exposure.
The Public Copy Was Removed, the Values Were Not
The containment sequence had three parts:
- Delete the public branch.
- Delete the 26 Actions runs in the exposed range.
- Verify the public URLs, not just the repository page.
The first two returned 204. After cleanup, the public branch URL, two sampled workflow-file URLs out of the ten, eight sampled run URLs and the commit-by-SHA URL all returned 404. The repository page no longer listed the branch. I scanned the other public repositories on the infrastructure I manage and found no second copy of the same workflow set.
That is the point where the dashboard looks clean. It is also the point where the incident is only half-contained.
Deleting a public page does not delete what the edge already served. The 35 workflow fetches and 11 log fetches happened before the branch was removed. Because those fetches preceded cleanup, I have to assume every value printed in those logs was harvested.
The URL checks were complete. They did not invalidate any credential, and they are not a rotation record. A deleted branch cannot revoke a token, close an SSO session or change a downstream client secret; those actions live outside the URL surface and outside this article’s scope.
Why the Log Outlived the Branch
Three design choices turned a branch into a lasting exposure:
The repository was public, and the branch inherited that. Branch visibility is not a separate switch in the Gitea UI. A branch in a public repository is public. A workflow that writes to a public branch is a publication step, even when the workflow is only meant to run a check.
Actions logs are retained independently of the branch. Deleting the branch removes the ref; it does not immediately remove every run artifact. The run list is keyed by repository and run ID, and the log endpoint stays addressable until the runs are deleted. The cleanup had to delete 26 runs explicitly.
The logs were reachable from the edge. Cloudflare proxied the Gitea hostname, so the external fetches appeared in the zone dataset. That is how the 35 + 11 counts were measured. Without the edge data, the public window would have looked like a quiet branch that was deleted before anyone saw it.
The incident changed what I monitor on the infrastructure I manage: new workflow files in public repositories, runs triggered by a token instead of a human account, and log downloads coming from outside my network. None of those rules existed before this branch.
The Result
The measured exposure was 14 hours and 20 minutes, from 09:26 to 23:46 UTC. The edge recorded 35 external workflow-file fetches and 11 external Actions log fetches. The public branch carried 26 runs and 10 workflow files; the related API window covered 786 requests, 38 writes, 22 private repository names and 47 file paths.
The public URLs now return 404, including the branch, two sampled workflow files, eight sampled runs and the commit SHA. The 26 runs were deleted, and a scan of the other public repositories found no duplicate.
The edge counts are the part that cannot be undone by a delete. The public branch is gone, but the workflow files and logs it published were readable long enough to be fetched. A public branch is not a staging area; in a public repository, it is a release channel for workflow files and logs.
Want a 24/7 bot or automation pipeline that never drops a lead?
Don't let customer inquiries slip away at midnight or on weekends. I build custom Telegram/WhatsApp AI assistants and deterministic workflows that connect directly to your catalogue, CRM, and order fulfillment.