Beyond coding. We forge. https://forgejo.org
  • Go 81.4%
  • go-html-template 10.6%
  • JavaScript 2.7%
  • CSS 1.9%
  • TypeScript 1.8%
  • Other 1.4%
Find a file
Mathieu Fenniak 0b2b072dce [v11.0/forgejo] fix: don't cache write permission on first pushed git reference (#13373)
Forgejo's git pre-receive hook validates whether the authenticated user can write to the target branch during a push operation.  A caching performance optimization in the hook caused the pre-receive hook to validate only the first branch reference in the push.  While typically a push operation has the same rights for all branches on a repository, some exceptions exist which could allow a user to push to a branch, pass the validation, and then bypass checks on additional references due to the cache.  The cache has been removed, forcing all references to be validated for code write permissions.

Thanks to Gitea for identifying this issue in https://github.com/go-gitea/gitea/pull/38103/changes/f25811942cea35233299efdbdfeec40663d4807a. This effort has been re-engineered for Forgejo, consistent with Forgejo's AI Agreement.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13373
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2026-07-09 06:10:00 +02:00
.devcontainer
.forgejo [v11.0/forgejo] ci: don't use redict during Forgejo testing (#13120) 2026-06-18 14:28:56 +02:00
assets
build
cmd [v11.0/forgejo] chore: correct spelling error in cleanup-commit-status CLI docs (#10839) 2026-01-14 20:10:03 +01:00
contrib
custom/conf
docker Update code.forgejo.org/oci/alpine Docker tag to v3.21 (followup) 2024-12-30 15:22:42 +00:00
models
modules
options fix: check the permission of canceling automerge 2026-03-06 11:20:50 -07:00
public chore(security): update security.txt with new expiration date (#6655) 2025-01-23 16:20:04 +00:00
release-notes doc: add release notes for Jan 8 security release 2026-01-06 11:10:12 -07:00
release-notes-published
releases/images
routers [v11.0/forgejo] fix: don't cache write permission on first pushed git reference (#13373) 2026-07-09 06:10:00 +02:00
services
templates [v11.0/forgejo] fix(ui): release: name is overridden with tag name on edit (#8289) 2025-06-26 08:06:36 +02:00
tests
tools
web_src
.air.toml
.deadcode-out [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
.dockerignore
.editorconfig
.envrc.example
.gitattributes Add interface{} to any replacement to make fmt, exclude *.pb.go (#30461) 2024-04-15 20:01:36 +02:00
.gitignore
.gitmodules cleanup(tests): remove manual testing submodule 2024-04-21 10:13:51 +02:00
.gitpod.yml
.golangci.yml [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
.ignore
.mailmap
.markdownlint.yaml
.node-version chore: pin node version (#10177) 2025-11-20 16:07:46 +01:00
.npmrc
.release-notes-assistant.yaml
.spectral.yaml Add spectral linter for Swagger (#20321) 2022-07-11 18:07:16 -05:00
.yamllint.yaml
BSDmakefile Fix build errors on BSD (in BSDMakefile) (#27594) 2023-10-13 15:38:27 +00:00
build.go
CODEOWNERS [skip ci] chore: adjust i18n entries in CODEOWNERS (#6667) 2025-01-26 07:37:50 +00:00
CONTRIBUTING.md
DCO Remove address from DCO (#22595) 2023-01-24 18:52:38 +00:00
Dockerfile
Dockerfile.rootless
eslint.config.mjs
flake.lock Update nixpkgs version in flake 2024-12-08 13:03:16 +01:00
flake.nix install go and gopls in nix flake devShell 2024-12-08 13:04:22 +01:00
go.mod
go.sum
LICENSE
main.go
Makefile
package-lock.json [v11.0/forgejo] chore(deps): Update playwright to v1.60.0 (#13022) 2026-06-09 17:43:23 +02:00
package.json
playwright.config.ts
poetry.lock
poetry.toml
pyproject.toml
README.md
release-notes-assistant.sh chore(release-notes-assistant): security fix / features come first 2024-11-17 20:03:11 +01:00
RELEASE-NOTES.md chore: fix typos, decap a few i18n strings (#6666) 2025-01-24 05:41:59 +00:00
renovate.json chore(renovate): update settings for latest version (#7329) 2025-03-25 08:39:26 +00:00
stylelint.config.js
tailwind.config.js
tsconfig.json Add typescript 2024-10-29 18:15:09 +01:00
vitest.config.ts
webpack.config.js Add typescript 2024-10-29 18:15:09 +01:00

Welcome to Forgejo

Hi there! Tired of big platforms playing monopoly? Providing Git hosting for your project, friends, company or community? Forgejo (/for'd͡ʒe.jo/ inspired by forĝejo the Esperanto word for forge) has you covered with its intuitive interface, light and easy hosting and a lot of builtin functionality.

Forgejo was created in 2022 because we think that the project should be owned by an independent community. If you second that, then Forgejo is for you! Our promise: Independent Free/Libre Software forever!

What does Forgejo offer?

If you like any of the following, Forgejo is literally meant for you:

  • Lightweight: Forgejo can easily be hosted on nearly every machine. Running on a Raspberry? Small cloud instance? No problem!
  • Project management: Besides Git hosting, Forgejo offers issues, pull requests, wikis, kanban boards and much more to coordinate with your team.
  • Publishing: Have something to share? Use releases to host your software for download, or use the package registry to publish it for docker, npm and many other package managers.
  • Customizable: Want to change your look? Change some settings? There are many config switches to make Forgejo work exactly like you want.
  • Powerful: Organizations & team permissions, CI integration, Code Search, LDAP, OAuth and much more. If you have advanced needs, Forgejo has you covered.
  • Privacy: From update checker to default settings: Forgejo is built to be privacy first for you and your crew.
  • Federation: (WIP) We are actively working to connect software forges with each other through ActivityPub, and create a collaborative network of personal instances.

Learn more

Dive into the documentation, subscribe to releases and blog post on our website, find us on the Fediverse or hop into our Matrix room if you have any questions or want to get involved.

License

Forgejo is distributed under the terms of the GPL version 3.0 or any later version.

The agreement for this license was documented in June 2023 and implemented during the development of Forgejo v9.0. All Forgejo versions before v9.0 are distributed under the MIT license.

Get involved

If you are interested in making Forgejo better, either by reporting a bug or by changing the governance, please take a look at the contribution guide.