054eb6d8a5
feat: Add Actions API rerun endpoints for runs and jobs ( #36768 )
...
This PR adds official REST API endpoints to rerun Gitea Actions workflow
runs and individual jobs:
* POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/rerun
* POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/jobs/{job_id}/rerun
It reuses the existing rerun behavior from the web UI and exposes it
through stable API routes.
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2026-03-02 21:34:06 +00:00
silverwind
45ee571693
Update to go 1.26.0 and golangci-lint 2.9.0 ( #36588 )
2026-02-11 18:37:13 +01:00
silverwind and wxiaoguang
42d294941c
Replace CSRF cookie with CrossOriginProtection ( #36183 )
...
Removes the CSRF cookie in favor of
[`CrossOriginProtection`](https://pkg.go.dev/net/http#CrossOriginProtection )
which relies purely on HTTP headers.
Fixes: https://github.com/go-gitea/gitea/issues/11188
Fixes: https://github.com/go-gitea/gitea/issues/30333
Helps: https://github.com/go-gitea/gitea/issues/35107
TODOs:
- [x] Fix tests
- [ ] Ideally add tests to validates the protection
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-25 12:33:34 +02:00
40f71bcd4c
Support Actions concurrency syntax ( #32751 )
...
Fix #24769
Fix #32662
Fix #33260
Depends on https://gitea.com/gitea/act/pulls/124
-
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
## ⚠️ BREAKING ⚠️
This PR removes the auto-cancellation feature added by #25716 . Users
need to manually add `concurrency` to workflows to control concurrent
workflows or jobs.
---------
Signed-off-by: Zettat123 <zettat123@gmail.com >
Co-authored-by: Christopher Homberger <christopher.homberger@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-10 18:58:55 +00:00