No description
Find a file
Gusted 53df0bf9a4 chore(sec): unify usage of crypto/rand.Read (#7453)
- Unify the usage of [`crypto/rand.Read`](https://pkg.go.dev/crypto/rand#Read) to `util.CryptoRandomBytes`.
- Refactor `util.CryptoRandomBytes` to never return an error. It is documented by Go, https://go.dev/issue/66821, to always succeed. So if we still receive a error or if the returned bytes read is not equal to the expected bytes to be read we panic (just to be on the safe side).
- This simplifies a lot of code to no longer care about error handling.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7453
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-04-04 03:31:37 +00:00
.devcontainer Update mcr.microsoft.com/devcontainers/go Docker tag to v1.24 (forgejo) (#7281) 2025-03-21 09:56:19 +00:00
.forgejo Update renovate to v39.222.0 (forgejo) (#7399) 2025-03-31 06:49:32 +00:00
assets chore(runner): return errors created by connect (#7222) 2025-03-17 09:00:24 +00:00
build feat(build): uniform ini parsing (#7429) 2025-04-03 08:27:02 +00:00
cmd chore(sec): unify usage of crypto/rand.Read (#7453) 2025-04-04 03:31:37 +00:00
contrib chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
custom/conf i18n: make Danish available in UI (#7287) 2025-03-22 16:18:54 +00:00
docker
models chore(sec): unify usage of crypto/rand.Read (#7453) 2025-04-04 03:31:37 +00:00
modules chore(sec): unify usage of crypto/rand.Read (#7453) 2025-04-04 03:31:37 +00:00
options chore(sec): unify usage of crypto/rand.Read (#7453) 2025-04-04 03:31:37 +00:00
public
release-notes fix: discard v25 secrets migrations errors instead of failing (#7251) 2025-03-17 16:25:37 +00:00
release-notes-published chore(release-notes): Forgejo v10.0.3 (#7311) 2025-03-23 08:50:48 +00:00
releases/images
routers chore(sec): unify usage of crypto/rand.Read (#7453) 2025-04-04 03:31:37 +00:00
services feat(activitiypub): enable HTTP signatures on all ActivityPub endpoints (#7035) 2025-04-03 15:24:15 +00:00
templates fix(migrations): transfer PR flow information (#7421) 2025-04-03 06:47:37 +00:00
tests chore(sec): unify usage of crypto/rand.Read (#7453) 2025-04-04 03:31:37 +00:00
tools
web_src fix: make repo clone https/ssh listener conditional (#7431) 2025-04-02 18:53:01 +00:00
.air.toml
.deadcode-out feat(build): teach lint-locale-usage about trPluralString (#7425) 2025-04-02 14:57:45 +00:00
.dockerignore
.editorconfig Cover go.mod and go.sum in .editorconfig (#33960) 2025-04-01 02:28:02 +02:00
.envrc.example
.gitattributes
.gitignore chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
.gitmodules
.gitpod.yml
.golangci.yml Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
.ignore
.mailmap
.markdownlint.yaml
.npmrc
.release-notes-assistant.yaml
.spectral.yaml
.yamllint.yaml
BSDmakefile
build.go
CODEOWNERS
CONTRIBUTING.md
DCO
Dockerfile chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
Dockerfile.rootless chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
eslint.config.mjs chore: enable no-jquery/no-map-collection 2025-04-01 04:44:44 +02:00
flake.lock
flake.nix
go.mod Update module github.com/mattn/go-sqlite3 to v1.14.27 (forgejo) (#7434) 2025-04-03 00:49:26 +00:00
go.sum Update module github.com/mattn/go-sqlite3 to v1.14.27 (forgejo) (#7434) 2025-04-03 00:49:26 +00:00
LICENSE
main.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
Makefile feat(build): run lint-locale-usage w/o --allow-missing-msgids (#7433) 2025-04-02 23:52:10 +00:00
package-lock.json Update vitest monorepo to v3.1.1 (forgejo) (#7407) 2025-04-01 02:52:46 +00:00
package.json Update vitest monorepo to v3.1.1 (forgejo) (#7407) 2025-04-01 02:52:46 +00:00
playwright.config.ts
poetry.lock Lock file maintenance (forgejo) (#7392) 2025-03-30 14:49:48 +00:00
poetry.toml
pyproject.toml Update dependency yamllint to v1.37.0 (forgejo) (#7383) 2025-03-29 23:02:53 +00:00
README.md chore(cleanup): remove comment from README 2025-03-26 09:58:55 +00:00
release-notes-assistant.sh
RELEASE-NOTES.md
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
vitest.config.ts
webpack.config.js

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.