Beyond coding. We forge. (Code of Conduct: https://codeberg.org/forgejo/code-of-conduct)
Go to file
Giteabot f6919e3e53
Respect original content when creating secrets (#24745) (#24746)
Backport #24745 by @wolfogre

Fix #24721.

Follow what GitHub does:
- Don't trim spaces for secrets.
- Newline should be `\n` instead of `\r\n`.

Did some tests with:

```yaml
name: secrets
on: push
jobs:
  show_secrets:
    runs-on: ubuntu-latest
    steps:
      - name: Dump secrets context
        run: echo '${{ toJSON(secrets) }}' | base64
```

`AAAAAA`:
```text
   AAAAAA
AAAAAA

```
`BBBBBB`:
```text

BBBBBB
BBBBBB
```

On GitHub:

<img width="675" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/0ec60652-c2a3-47bb-9f9d-7e81665355a8">

On Gitea (before):

<img width="673" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/cce818bf-5edc-4656-86e1-2c81c304cdb2">

On Gitea (after):

<img width="673" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/0b3b15af-4d48-4bab-a334-4738a1b0eb4a">

Co-authored-by: Jason Song <i@wolfogre.com>
(cherry picked from commit e4f200e616)
2023-05-23 07:42:33 +02:00
.gitea [WORKFLOW] issues & pr templates 2023-05-10 09:20:14 +02:00
.woodpecker [BRANDING] parse FORGEJO__* in the container environment 2023-05-10 11:05:22 +02:00
assets [BRANDING] add Forgejo logo 2023-05-10 11:05:21 +02:00
build [I18N] Add Locale merger script 2023-05-10 11:05:04 +02:00
cmd [BRANDING] Rebrand dump log 2023-05-10 11:05:22 +02:00
contrib [BRANDING] adapt forgejo/contrib/upgrade.sh 2023-05-10 11:05:22 +02:00
CONTRIBUTING [DOCS] CONTRIBUTING 2023-05-10 09:20:14 +02:00
custom/conf Merge remote-tracking branch 'forgejo/v1.19/forgejo-branding' into v1.19/forgejo 2023-05-10 18:53:01 +02:00
docker [BRANDING] container images: set APP_NAME 2023-05-10 11:05:21 +02:00
docs Fix docs documenting invalid @every for OLDER_THAN cron settings (#24695) (#24698) 2023-05-16 07:42:22 +02:00
models Respect original content when creating secrets (#24745) (#24746) 2023-05-23 07:42:33 +02:00
modules Merge remote-tracking branch 'forgejo/v1.19/forgejo-branding' into v1.19/forgejo 2023-05-10 18:53:01 +02:00
options [I18N] Move source locales to other folder 2023-05-10 11:05:04 +02:00
public [BRANDING] Custom loading animation for Forgejo 2023-05-10 11:05:21 +02:00
releases [DOCS] RELEASE-NOTES: 1.19.0 2023-05-10 09:20:14 +02:00
routers Respect original content when creating secrets (#24745) (#24746) 2023-05-23 07:42:33 +02:00
services Merge remote-tracking branch 'forgejo/v1.19/forgejo-branding' into v1.19/forgejo 2023-05-10 18:53:01 +02:00
snap Remove unnecessary whitespace in snapcraft.yaml (#22090) 2022-12-10 08:31:16 -06:00
templates Fix Pull Mirror out-of-sync bugs (#24732) (#24733) 2023-05-16 07:42:23 +02:00
tests Add test for api team organization (#24699) (#24702) 2023-05-16 07:42:23 +02:00
tools Move fuzz tests into tests/fuzz (#22376) 2023-01-09 15:30:14 +08:00
web_src [BRANDING] Add Forgejo light, dark, and auto themes: fix import 2023-05-10 11:05:22 +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 nightly tag 2023-05-01 14:17:52 -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-05-10 11:05:04 +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 for 1.19.3 (#24495) 2023-05-03 11:14:50 -04:00
CONTRIBUTING.md [DOCS] CONTRIBUTING 2023-05-10 09:20:14 +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-05-10 11:05:22 +02:00
Dockerfile.rootless [BRANDING] symlink gitea to forgejo in docker containers 2023-05-10 11:05:22 +02:00
go.mod Bump go.etcd.io/bbolt and blevesearch deps (#23062) (#24519) 2023-05-04 12:41:36 +02:00
go.sum Bump go.etcd.io/bbolt and blevesearch deps (#23062) (#24519) 2023-05-04 12:41:36 +02:00
LICENSE [DOCS] LICENSE: add Forgejo Authors 2023-05-10 09:20:14 +02:00
main.go [BRANDING] alias {FORGEJO,GITEA}_{CUSTOM,WORK_DIR} 2023-05-10 11:05:22 +02:00
MAINTAINERS Add sillyguodong to maintainers (#23067) 2023-02-22 18:32:00 +08:00
Makefile Merge remote-tracking branch 'forgejo/v1.19/forgejo-i18n' into v1.19/forgejo 2023-05-10 18:53:07 +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-05-10 11:05:21 +02:00
RELEASE-NOTES.md [DOCS] RELEASE-NOTES: 1.19.0 2023-05-10 09:20:14 +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-05-10 09:20:14 +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.