Beyond coding. We forge. (Code of Conduct: https://codeberg.org/forgejo/code-of-conduct)
Find a file
Giteabot 10d3ed53f1
Fix auth check bug (#24382) (#24387)
Backport #24382 by @lunny

Fix https://github.com/go-gitea/gitea/pull/24362/files#r1179095324

`getAuthenticatedMeta` has checked them, these code are duplicated one.
And the first invokation has a wrong permission check. `DownloadHandle`
should require read permission but not write.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit 5999349ce7)
2023-04-28 08:58:05 +02:00
.gitea [WORKFLOW] issues & pr templates 2023-04-22 11:31:28 +02:00
.woodpecker [BRANDING] parse FORGEJO__* in the container environment 2023-04-22 16:53:14 +02:00
assets [BRANDING] add Forgejo logo 2023-04-22 16:53:12 +02:00
build [I18N] Add Locale merger script 2023-04-22 16:54:18 +02:00
cmd [BRANDING] Rebrand dump log 2023-04-22 16:53:15 +02:00
contrib [BRANDING] adapt forgejo/contrib/upgrade.sh 2023-04-22 16:53:15 +02:00
CONTRIBUTING [DOCS] CONTRIBUTING 2023-04-22 11:31:27 +02:00
custom/conf Don't set meta theme-color by default (#24340) (#24346) 2023-04-28 07:33:39 +02:00
docker Unify nightly naming across binaries and docker images (#24116) (#24308) 2023-04-28 07:33:36 +02:00
docs Don't set meta theme-color by default (#24340) (#24346) 2023-04-28 07:33:39 +02:00
models Remove org users who belong to no teams (#24247) (#24313) 2023-04-28 07:33:38 +02:00
modules Require repo scope for PATs for private repos and basic authentication (#24362) (#24364) 2023-04-28 08:58:05 +02:00
options [I18N] Move source locales to other folder 2023-04-22 16:54:19 +02:00
public [BRANDING] Custom loading animation for Forgejo 2023-04-22 16:53:13 +02:00
releases [DOCS] RELEASE-NOTES: 1.19.0 2023-04-22 11:31:28 +02:00
routers Add tags list for repos whose release setting is disabled (#23465) (#24369) 2023-04-28 08:58:05 +02:00
services Fix auth check bug (#24382) (#24387) 2023-04-28 08:58:05 +02:00
snap Remove unnecessary whitespace in snapcraft.yaml (#22090) 2022-12-10 08:31:16 -06:00
templates Add tags list for repos whose release setting is disabled (#23465) (#24369) 2023-04-28 08:58:05 +02:00
tests Fix auth check bug (#24382) (#24387) 2023-04-28 08:58:05 +02:00
tools Move fuzz tests into tests/fuzz (#22376) 2023-01-09 15:30:14 +08:00
web_src Add tags list for repos whose release setting is disabled (#23465) (#24369) 2023-04-28 08:58:05 +02:00
.air.toml Add more test directory to exclude dir of air, remove watching templates from air include dir because gitea has internal mechanism (#22246) 2022-12-27 14:00:34 +08:00
.changelog.yml Changelog for v1.15.0-rc1 (#16422) 2021-07-15 11:47:57 -04:00
.dockerignore Add .dockerignore (#21753) 2022-11-10 04:04:09 +01:00
.drone.yml test_env: hardcode major go version in use (#23464) 2023-03-14 04:12:14 -04:00
.editorconfig Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
.eslintrc.yaml Refactor hiding-methods, remove jQuery show/hide, remove .hide class, remove inline style=display:none (#22950) 2023-02-19 12:06:14 +08:00
.gitattributes Hook go-licenses into tidy again (#21353) 2022-10-10 20:45:02 +02:00
.gitignore [I18N] Makefile + gitignore 2023-04-22 16:54:18 +02:00
.gitpod.yml Split default gitpod view to include all tasks (#22555) 2023-01-20 13:46:33 -06:00
.golangci.yml Fix .golangci.yml (#22868) 2023-02-11 21:44:53 +00:00
.ignore Add some .ignore entries (#18296) 2022-01-16 17:26:15 +00:00
.lgtm refactor: ignore LGTM from author of pull request. (#3283) 2018-01-02 06:13:49 -06:00
.markdownlint.yaml Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
.npmrc Stop packaging node_modules in release tarballs (#15273) 2021-04-09 01:08:14 -04:00
.spectral.yaml Add spectral linter for Swagger (#20321) 2022-07-11 18:07:16 -05:00
.stylelintrc.yaml Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
BSDmakefile Add BSDmakefile to prevent errors when make is called under FreeBSD (#4446) 2018-07-16 20:45:51 +02:00
build.go User/Org Feed render description as per web (#23887) (#23906) 2023-04-04 00:44:50 -04:00
CHANGELOG.md Changelog v1.19.1 (#24079) 2023-04-13 03:38:06 +02:00
CONTRIBUTING.md [DOCS] CONTRIBUTING 2023-04-22 11:31:27 +02:00
DCO Remove address from DCO (#22595) 2023-01-24 18:52:38 +00:00
Dockerfile [BRANDING] symlink gitea to forgejo in docker containers 2023-04-22 16:53:14 +02:00
Dockerfile.rootless [BRANDING] symlink gitea to forgejo in docker containers 2023-04-22 16:53:14 +02:00
go.mod Upgrade act (#24298) (#24300) 2023-04-28 07:30:28 +02:00
go.sum Upgrade act (#24298) (#24300) 2023-04-28 07:30:28 +02:00
LICENSE [DOCS] LICENSE: add Forgejo Authors 2023-04-22 11:31:28 +02:00
main.go [BRANDING] alias {FORGEJO,GITEA}_{CUSTOM,WORK_DIR} 2023-04-22 16:53:15 +02:00
MAINTAINERS Add sillyguodong to maintainers (#23067) 2023-02-22 18:32:00 +08:00
Makefile [SEMVER] bump to 4.2.0+0-gitea-1.19.2 2023-04-28 07:54:29 +02:00
package-lock.json Polyfill the window.customElements (#23592) (#23595) 2023-03-20 19:52:05 +01:00
package.json Polyfill the window.customElements (#23592) (#23595) 2023-03-20 19:52:05 +01:00
playwright.config.js Update JS dependencies and eslint config (#21388) 2022-10-10 20:02:20 +08:00
README.md [BRANDING] add Forgejo logo 2023-04-22 16:53:12 +02:00
RELEASE-NOTES.md [DOCS] RELEASE-NOTES: 1.19.0 2023-04-22 11:31:28 +02:00
vitest.config.js Update JS dependencies and eslint (#22190) 2022-12-20 17:15:47 -05:00
webpack.config.js [API] Forgejo API /api/forgejo/v1 2023-04-22 11:31:28 +02: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. Interested? Read more

Learn more

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.

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.