r/forgejo • • 5d ago

How to get forgejo to show other main markdown files on repo home page?

9 Upvotes

hai! i'm wondering if there is any way to get my forgejo instance to display other major markdown documents on a repo homepage. for example, files like `license.md` and `contributing.md`, like this (taken from the cargo repo on github):

a screenshot of the tab bar from the cargo repo on https://github.com/rust-lang/cargo?tab=readme-ov-file

i'm on version 17.0.1, and it's deployed on a deb13 LXC thru proxmox. any help is really appreciated, thanks!

EDIT: SOLVED(ish) by u/garbast

Here is a copy of their reply for archival purposes:

Not really supported. You need to modify the source of forgejo itself. You could modify the footer.tmpl and something like this to render an additional file below the readme.md but its less intuitive or flexible.

<script>
document.addEventListener('DOMContentLoaded', async () => {
  const readme = document.querySelector('#readme');
  if (!readme) return; // nur auf Repo-Startseiten mit README

  const wanted = ['contributing.md', 'license.md'];
  const links = [...document.querySelectorAll('#repo-files-table a')];
  let anchor = readme;

  for (const name of wanted) {
    const link = links.find(a => a.getAttribute('href')?.toLowerCase().endsWith('/' + name));
    if (!link) continue;
    try {
      const html = await (await fetch(link.href)).text();
      const doc = new DOMParser().parseFromString(html, 'text/html');
      const box = doc.querySelector('.non-diff-file-content');
      if (!box) continue;
      box.id = 'extra-' + name.replace('.', '-');
      box.style.marginTop = '1rem';
      anchor.after(box);
      anchor = box;
    } catch (e) { console.warn('extra-doc', name, e); }
  }
});
</script>

r/forgejo • • 18d ago

What I learned building hosted runners for Forgejo Actions

20 Upvotes

I have been building hosted runners for Forgejo Actions on my servers in Germany (it’s called Stoke CI, more below, and yes, I run it). Forgejo and forgejo-runner surprised me a few times along the way so here is what I ran into in case it saves someone else the debugging.

  1. Host mode breaks Rust caching: In host mode, forgejo-runner puts every job in a randomly named directory. rust-cache puts the absolute path of “target/“ into the cache version, so it never restores since the path doesn’t match. I have opened an issue on this in https://code.forgejo.org/forgejo/forgejo-actions-feature-requests/issues/139. Write-up: https://stokeci.dev/blog/host-mode-cache-keys
  2. Ephemeral runners that never get a job never expire: Forgejo deletes an ephemeral runner after its one job, but one that never got it never gets deleted. Its credentials can be reused, even with different labels so I reuse them instead of piling up dead runners. Notes on this: https://stokeci.dev/blog/ephemeral-forgejo-runners
  3. A runner that dies mid-job leaves the job “running”: On Forgejo 17.0.1 the job was still marked running after 10+ minutes. The runner stayed listed, so still listed doesn’t mean “still alive”
  4. An empty job list is “null” not “[]”: Small thing but broke my first parser ( GET /api/v1/…/actions/jobs )

After all these obstacles I ran through, I was still able to make a functional hosted runners platform for Forgejo which I love. Right now I’m looking for bugs so I opened a beta with free signup.

Also surprisingly setting up caches for crates.io and actions caches was easy to do, which I thought would be hard.

Limits on Stoke CI (for beta):
- 2 cores, 4gb, 60 minutes per job( I know, cool right? :) )
- signups are approved by hand ( a fast approval time so it’s not really that much of a limit )

I would really like to know: what you would need before using hosted runners instead of self-hosting them?
https://stokeci.dev


r/forgejo • • 22d ago

Draft Pull Requests?

5 Upvotes

Hi folks, I moved to self-hosted Forgejo some time ago and now I'm trying to emulate my previous workflow with Github more closely, but could not find how to create Draft Pull Requests?

Google AI seems to think I should have a drop down option in the Create Pull Request buttom similar to Github's, but I don't see it - I'm starting to think Google is hallucinating this feature into Forgejo.

Does the feature exist? Maybe I'm missing some configuration option? Could not find anything about it in the docs.


r/forgejo • • 26d ago

Fully disabling automated sync of pull repos?

1 Upvotes

EDIT: Solved

This did the trick...

[cron.update_mirrors]
ENABLED: false

Exactly what I wanted. Now I can manually trigger a sync using the rest api on a per-repo basis without forgejo being so damn chatty.


I've had forgejo installed for a couple/few weeks and adore it.

But it's FAR too aggressive with automatically syncing a pull repo and I've no interest in it governing that synchronization process.

How do I shut down the automation entirely? I'll trigger the sync via the api when I need to.


r/forgejo • • Oct 23 '26

Forgejo Actions: dind and jobs with volume mounts

9 Upvotes

I set up a Forgejo runner and dind container following the example here. I then followed this guide and set runner.envs.DOCKER_HOST appropriately. My jobs that use some invocation of docker -v /workspace:/somewhere (e.g. renovatebot/github-action) don't work, which makes sense, because everything under /workspace is part of the runner's filesystem, not dind's. I'd like to be able to use such actions out of the box, if possible.

What can I do about this? Is there a canonical solution? Have I configured something wrong?


r/forgejo • • Oct 16 '26

Forgejo 17.0 released with job summaries, Git LFS improvements and FUNDING.yml support

95 Upvotes

Forgejo 17.0 is out. Actions gets the most attention. Job summaries now work with Forgejo Runner 13.2 or newer. They show Markdown above the job logs, including tables, Mermaid diagrams and math. The Actions API can also rerun finished workflows or single jobs, filter logs and fetch output from specific steps.

The Git LFS interface is easier to navigate, and you can now find which commits reference a given LFS file. Repos and profiles can show a Donate button through FUNDING.yml. Typing # in issues and comments suggests issues and PRs, and ! suggests PRs only.

Organizations get invitations that users must accept or decline. They expire after 14 days by default. You can also add users to several teams at once. Bitbucket Data Center migration is supported too.

17.0 is a non-LTS release and is supported until January 28, 2027. 15.0 LTS stays supported until July 15, 2027.

Source: https://forgejo.org/2026-10-release-v17-0/

Other writing: https://linuxiac.com/forgejo-17-0-dev-platform-released-with-improved-actions-git-lfs-support/


r/forgejo • • Oct 14 '26

Forgejo

0 Upvotes

Hallo,
gibt es die Möglichkeit auf einem geklonten Server in Proxmox, der kein Internet hat Copy & Paste zu machen?


r/forgejo • • Oct 08 '26

"I Can't Believe It's Not GitHub" CSS theme

24 Upvotes

(It looks like Reddit's image thing is throwing off the colors slightly for some reason, but it should be a 1:1 match in actual use.)

This started off with me just changing colors, but quickly grew to also adjusting various parts of the UI to be more GitHub-like as well. The most obvious one is probably the top bar contents being inlined (except for the home page), which saves a decent amount of screen real estate.

It definitely doesn't cover everything, nor is it perfect, but it's close enough for my use, and probably most people, though further suggestions/tweaks to the CSS are welcome.

I recommend setting Settings->Appearance->Default theme to gitea-auto as that's what this was developed against. Most focus went into the dark theme, but was sanity-checked in light mode as well.

I'm personally using the FireMonkey extension for Firefox to set the theme, but should work with any CSS changing addon in your browser of choice.

https://gist.github.com/qwertychouskie/0d34ac3a0677c6fe1d9b636b32e6c38b (CSS was originally pasted directly in this post, but I kept updating it, so I put it in a Gist to make it easy to update without changing the post every time.


r/forgejo • • Oct 04 '26

Forgejo sidetree: a browser extension that add sidetree to your repo

Thumbnail
gallery
18 Upvotes

When I started using Forgejo, I always wanted an extension that could add a side tree like GitHub's. So a couple of months ago, I took several days working on it, polishing it, and making it functional and comfortable. Now I use it with my Forgejo instance every day.

Today my add-on was approved on the Firefox add-on site. If you want to try it, help yourself.
For Chrome-based browsers, I built a zip in dist, or you can build it yourself.

Here is the link https://addons.mozilla.org/en-US/firefox/addon/forgejo-sidetree/


r/forgejo • • Oct 01 '26

Make existing repository public for cloning?

4 Upvotes

Hi,

I have a personal repository on which I want to keep my hands on, but make it available for public access without authentication to let persons download and clone it.
I have a "public" user that can publish, but I can't find a way to make my repository available/visible for anybody landing on my Forgejo instance. Googling was not successful, telling me to uncheck "private", but that doesn't make it visible to public access at all.

Is this possible?
Me: commit, push, etc...
Public (no login): clone, download.

Thanks for any guidance.

Steve J


r/forgejo • • Oct 01 '26

Self-hosted Code Review Agent for Forgejo

Thumbnail
gallery
19 Upvotes

Self-Hosted Code Review Agent. called Proval. (I made it actually)

Open source and only got docker image

It's basically just a self-hosted docker app. Works with Forgejo, and also GitLab and GitHub too, so you can connect with your self hosted instance. Proval supports chat completion API and anthropic API, If you running Local LLM, you can connect it through chat completion API

I ran the 50-problem Martian offline benchmark about few month ago and scored F1 0.427 with the minimax-m3, which ranked 7th out of 21 at the time. (If you check now, newer models have come out so the ranking is lower.) I'll release new result with better model soon

The goal was to make something lightweight, easy to use, and genuinely useful. you just need to configure the model, webhook, and Git Host access API on the web dashboard, and setup is done. It's built on Bun, the frontend uses SvelteKit, and the database is SQLite per instance. The Docker image is compiled to a Bun binary so the size is pretty small.

Got some help from LLM(mostly Cursor Cli) but It's not vibe coded, I took a lot of time thinking through the architecture, implementing it, and testing through trial and error to build this. You can see the actual codes from repo, hope you like it

Review process

  1. A planning LLM loop scans the codebase broadly and groups changed files by their relationships like export and import connections
  2. Sub Agents, which are also LLM loops, review each group of code in parallel
  3. A consolidating LLM loop collects all results, prioritizes findings, and posts inline reviews on the PR

What it does

- Reviews on PR open or first push
- Inline comments on PRs
- Replies to PR comments (can set to only respond when mentioned)
- Reviews when an issue is opened (also checks for duplicate issues)
- Replies to comments on issues
- Restricts replies based on repo permissions like Developer or Maintainer
- Admin login, or you can disable auth entirely and leave it open

Good use cases

- If you have local LLM infrastructure running
- If you run a GitLab or Forgejo instance (highly recommended, GitHub is also supported)
- If you have plenty of tokens on your LLM API
- If you're not happy with subscription or open-source code review apps (this one is pretty decent)

How to deploy

docker-compose.yml example

services:
    proval:
        image: ghcr.io/seoes/proval:latest
        ports:
            - "7900:7900"
            - "7901:7901"
        volumes:
            - ./data:/data
        environment:
            - ENCRYPTION_KEY=[Encryption Key]

for Encryption Key, use command

openssl rand -base64 32

Give it a try and feel free to leave your honest feedback

demo: https://demo.proval.app

repo: https://github.com/seoes/proval (You can check Issues and PRs which Proval commented)

website: https://proval.app


r/forgejo • • Sep 24 '26

Has anyone tried the Forgego app

Thumbnail
forgego.dev
9 Upvotes

I can't see where to download it but its made by DevXY, the same people behind Codefloe.


r/forgejo • • Sep 23 '26

Curious about Forgejo deployments

12 Upvotes

Hi,

I'm just curious where do developers deploy their Forgejo instances? Is it on hypervisor like Proxmox or on cloud providers?
If you're using Forgejo Actions, are you deploying it on Kubernetes or are you running it on VMs?


r/forgejo • • Sep 22 '26

Gitea Security issue (1.27.3 update) and forgejo

10 Upvotes

Hi all,

Just wanted to check something with the latest patch that came out for Gitea due to the vulnerabilities in the code (https://blog.gitea.com/release-of-1.27.3), do we know if this vulnerability would be part of forgejo, or is the fork from Gitea too far gone now?


r/forgejo • • Sep 22 '26

Any Known Forgejo Scale Limits?

6 Upvotes

I'm curious to know if you're aware of Forgejo's scaling limits?
If we migrate 200 users, and eventually 1,000 users, will it perform well?
Are there any known scale limitations?
Thanks


r/forgejo • • Sep 21 '26

Here's a script to make upgrading binary installs of Forgejo easy

2 Upvotes

I decided to try Forgejo, and I like it, but upgrading binary installs the right way can be complex for users new to Linux. So, I created a script to make upgrading quick and easy.
Any feedback is welcome and appreciated!
https://github.com/seanthegeek/forgejo-upgrade


r/forgejo • • Sep 16 '26

Forgejo 16 instance won't run hooks on push

3 Upvotes

A bit of a weird one. I am self-hosting a Docker instance of Forgejo 16 (rootless) with Postgres. Whenever I push to a repo Forgejo displays this warning:

The database representation of this repository is out of synchronization. If this warning is still shown after pushing a commit to this repository contact the administrator.

Suggestions online seem to apply to older versions of Forgejo (mostly suggesting to regenerate hooks, which is something that changed in v16).

After lots of fiddling I eventually set up a second test instance on the same system with an almost identical docker-compose (different mount paths only), same structure for filesystem mounts and the same permissions in filesystem. Even double checked on my file system that the hooks files are executable and specifically have identical owner, group and permissions between the two instances (which they do), and I can't see any notable difference between the app.ini files of both instances.

However, pushing to the new instance works fine. So I check the logs of both after pushing to a repo and notice some differences. According to logs the original instance just uploads and is done, whereas the new test instance also runs the pre-receive and post-receive hooks. After that I once again double checked that the hooks are present in the original instances file system and have the same permissions... they do.

Log for original instance:

2026-09-15 15:59:43 [forgejo] 2026/09/15 15:59:43 ...eb/routing/logger.go:109:func1() [I] router: completed GET /REDACTED-USERNAME/testrepo.git/info/refs?service=git-receive-pack for REDACTED-IP:51232, 401 Unauthorized in 5.5ms @ repo/githttp.go:509(repo.GetInfoRefs)
2026-09-15 15:59:43 [forgejo] 2026/09/15 15:59:43 ...eb/routing/logger.go:109:func1() [I] router: completed GET /REDACTED-USERNAME/testrepo.git/info/refs?service=git-receive-pack for REDACTED-IP:51232, 200 OK in 18.9ms @ repo/githttp.go:509(repo.GetInfoRefs)
2026-09-15 15:59:44 [forgejo] 2026/09/15 15:59:44 ...eb/routing/logger.go:109:func1() [I] router: completed POST /REDACTED-USERNAME/testrepo.git/git-receive-pack for REDACTED-IP:51232, 200 OK in 68.5ms @ repo/githttp.go:477(repo.ServiceReceivePack)

Log for test instance:

2026-09-15 11:14:28 [forgejotest] 2026/09/15 11:14:28 ...eb/routing/logger.go:109:func1() [I] router: completed GET /REDACTED-USERNAME/testrepo.git/info/refs?service=git-receive-pack for REDACTED-IP:57750, 401 Unauthorized in 8.6ms @ repo/githttp.go:509(repo.GetInfoRefs)
2026-09-15 11:14:28 [forgejotest] 2026/09/15 11:14:28 ...eb/routing/logger.go:109:func1() [I] router: completed GET /REDACTED-USERNAME/testrepo.git/info/refs?service=git-receive-pack for REDACTED-IP:57750, 200 OK in 18.1ms @ repo/githttp.go:509(repo.GetInfoRefs)
2026-09-15 11:14:29 [forgejotest] 2026/09/15 11:14:29 ...eb/routing/logger.go:109:func1() [I] router: completed POST /api/internal/hook/pre-receive/REDACTED-USERNAME/testrepo for 127.0.0.1:0, 200 OK in 7.3ms @ private/hook_pre_receive.go:202(private.HookPreReceive)
2026-09-15 11:14:30 [forgejotest] 2026/09/15 11:14:30 ...eb/routing/logger.go:109:func1() [I] router: completed POST /api/internal/hook/post-receive/REDACTED-USERNAME/testrepo for 127.0.0.1:0, 200 OK in 23.5ms @ private/hook_post_receive.go:35(private.HookPostReceive)
2026-09-15 11:14:30 [forgejotest] 2026/09/15 11:14:30 ...eb/routing/logger.go:109:func1() [I] router: completed POST /REDACTED-USERNAME/testrepo.git/git-receive-pack for REDACTED-IP:57750, 200 OK in 989.5ms @ repo/githttp.go:477(repo.ServiceReceivePack)

The only things I can think of that has been done differently on the original instance is that it used to be behind a reverse proxy, and having migrated a few repos from a different instance.
* For the original instance at some point I migrated a few repos from a v14 (or was it v13) instance. I didn't encounter any issues when doing it, but I suppose there's could have been some silent issue due to database differences... it still seems odd that would make hooks no longer run.
* The original instance used to be behind a reverse proxy (with the relevant ROOT_URL set), but after all the problems and being unable to figure out what was wrong I reverted that back to basic IP:PORT before creating a fresh new test repo and trying again, which still failed in the same way.

At this point I'm kinda lost. I don't know what is causing the original instance to not run the hooks nor can I see a way to fix it. Not sure how to debug this further. I'm just not skilled enough with forgejo, docker or linux to figure this out (but gotta start somewhere, right?). At this stage even just pointers to where I can probe further would be much appreciated.

Docker compose file:

networks:
  forgejo:
    external: true

services:
  server:
    image: codeberg.org/forgejo/forgejo:16-rootless
    container_name: forgejo
    user: "1000:1000"
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - FORGEJO__database__DB_TYPE=postgres
      - FORGEJO__database__HOST=db:5432
      - FORGEJO__database__NAME=REDACTED
      - FORGEJO__database__USER=REDACTED
      - FORGEJO__database__PASSWD=REDACTED
    restart: unless-stopped
    networks:
      - forgejo
    volumes:
      - /mnt/exta1/forgejo/data:/var/lib/gitea
      - /etc/localtime:/etc/localtime:ro
    ports:
      - '33000:3000'
      - '222:2222'
    depends_on:
      - db

  db:
    image: postgres:14
    container_name: forgejo-db
    restart: unless-stopped
    user: "1000:1000"
    environment:
      - POSTGRES_USER=REDACTED
      - POSTGRES_PASSWORD=REDACTED
      - POSTGRES_DB=REDACTED
    networks:
      - forgejo
    volumes:
      - /opt/containers/forgejo/postgres/data:/var/lib/postgresql/data

app.ini

APP_NAME = Forgejo
RUN_USER = git
RUN_MODE = prod
APP_SLOGAN = Beyond coding. We Forge.
WORK_PATH = /var/lib/gitea

[repository]
ROOT = /var/lib/gitea/git/repositories

[repository.local]
LOCAL_COPY_PATH = /tmp/gitea/local-repo

[repository.upload]
TEMP_PATH = /tmp/gitea/uploads

[server]
APP_DATA_PATH = /var/lib/gitea
SSH_DOMAIN = REDACTED-IP
HTTP_PORT = 3000
ROOT_URL = http://REDACTED-IP:33000/
DISABLE_SSH = false
; In rootless gitea container only internal ssh server is supported
START_SSH_SERVER = true
SSH_PORT = 2222
SSH_LISTEN_PORT = 2222
BUILTIN_SSH_SERVER_USER = git
LFS_START_SERVER = true
DOMAIN = REDACTED-IP
LFS_JWT_SECRET = REDACTED
OFFLINE_MODE = true

[database]
PATH = /var/lib/gitea/data/gitea.db
DB_TYPE = postgres
HOST = db:5432
NAME = REDACTED
USER = REDACTED
PASSWD = REDACTED
SCHEMA =
SSL_MODE = disable
LOG_SQL = false

[session]
PROVIDER_CONFIG = /var/lib/gitea/data/sessions
PROVIDER = file

[picture]
AVATAR_UPLOAD_PATH = /var/lib/gitea/data/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /var/lib/gitea/data/repo-avatars

[attachment]
PATH = /var/lib/gitea/data/attachments

[log]
ROOT_PATH = /var/lib/gitea/data/log
MODE = console
LEVEL = info

[security]
INSTALL_LOCK = true
SECRET_KEY =
REVERSE_PROXY_LIMIT = 1
INTERNAL_TOKEN = REDACTED
PASSWORD_HASH_ALGO = pbkdf2_hi

[service]
DISABLE_REGISTRATION = true
REQUIRE_SIGNIN_VIEW = false
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
DEFAULT_KEEP_EMAIL_PRIVATE = true
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost

[lfs]
PATH = /var/lib/gitea/git/lfs

[mailer]
ENABLED = false

[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false

[cron.update_checker]
ENABLED = true

[repository.pull-request]
DEFAULT_MERGE_STYLE = merge

[repository.signing]
DEFAULT_TRUST_MODEL = committer

[oauth2]
JWT_SECRET = REDACTED

[migrations]
ALLOW_LOCALNETWORKS = true

r/forgejo • • Sep 13 '26

Forgejo Actions Orchestrator

3 Upvotes

I have created a CI orchestrator that spawns a cloud VM, installs Forgejo Runner there, connects your Forgejo instance directly to it, thus you never execute any RCE code on your Forgejo host, never have to worry about any kernel exploit risks, have no docker-in-docker limitations and also get a hermetic real CI that works just like in GitHub/GitLab/others.

Cost: 0.1€/run more or less on any cloud platform and some require upfront deposit of 5, 10, 20€

How it works: it polls pre-selected repositories on your Forgejo instance, checks which jobs qualify for a runner, the job configures which label set and which provider it wants via Forgejo configs, the Orchestrator spins up a cloud vm there specifically for your task (from a bare OS image or your snapshot to speed up provision) and installs everything necessary using cloud-init. I have tried Terraform but eventually dropped it because it was too complex for a simple tool like this.

How I use it: on my two Forgejo instances, one is for a quite big open source project's builds and PR checks running across 5 Cloud providers (Hetzner/Vultr/CherryServers/Gcore/Scaleway), another is for my personal projects, mainly for reproducibility and scheduled dependencies audit checks. I used to run Actions Runner directly on my server, but I just can't stand the possibility of someone getting RCE on the same machine I have my critical email server, password manager, all my personal projects.

How you use it: 4.6 MB Rust Linux binary, builds are reproducible. Install it, get api keys from cloud providers, run with systemd (configurable with systemd's secrets, config hardened by default). MIT licensed.

https://git.hloth.dev/hloth/forgejo-actions-orchestrator


r/forgejo • • Sep 11 '26

Disallowed Hosts error using Forgejo's GitLab migration (both are self-hosted)

6 Upvotes

In attempting to migrate the first of our GitLab repos to our Forgejo, it failed with:

You cannot import from disallowed hosts, please ask the admin to check ALLOWED_DOMAINS/ALLOW_LOCALNETWORKS/BLOCKED_DOMAINS settings.

Our admin checked those values; it's a brand new installation, so they are set to the defaults, per the Migration docs:

ALLOWED_DOMAINS: <empty>: Domains allowlist for migrating repositories; default is blank. It means everything will be allowed.

BLOCKED_DOMAINS: <empty>: Domains blocklist for migrating repositories; default is blank. 

ALLOW_LOCALNETWORKS: false: Allow private addresses [ . . . ]. If a domain is allowed by ALLOWED_DOMAINS, this option will be ignored.

Since ALLOWED_DOMAINS is empty, our GitLab should have been allowed, but just to be sure, our admin added our GitLab domain to ALLOWED_DOMAINS and restarted the instance; no change -- the same error message was emitted when I ran the migration.

Any ideas why this is happening, or suggestions as to what we could check?

I've looked through https://codeberg.org/forgejo/forgejo/pulls/13129 for some background on ALLOWED_DOMAINS, and have considered using the migration scripts in https://codeberg.org/GEANT/gitlab_to_forgejo and its three forks, but was hoping to use the built-in GL->FJ migration.


r/forgejo • • Sep 01 '26

jenkins like ci-status overview

1 Upvotes

I created a jenkins like ci-status overview based on some SQL queries. Please let me know whether you are interested and i will post a gist or create a repo.


r/forgejo • • Aug 26 '26

How much maintenant to manage a forgejo self-hosted?

17 Upvotes

Basically the title, is anyone managing a forgejo instance for their company?

Currently have around a dozen active repo, a bit less than 50 Devs, so relatively small scale. But I was wondering how much maintenance and complexity there's in managing reliably an instance for that kinda traffic?

I already have self hosted runners, that I'll keep

Obviously, considering the move after another GitHub incident...


r/forgejo • • Aug 26 '26

Forgejo Actions JWT ID Tokens for OpenBao

Thumbnail eyenx.ch
3 Upvotes

r/forgejo • • Aug 23 '26

Forgejo Actions secrets decryption recipe (GitHub gist)

Thumbnail
gist.github.com
17 Upvotes

r/forgejo • • Aug 15 '26

Forgejo 15.0.6 OIDC Token Rejected by AWS STS

5 Upvotes

I am using Forgejo 15.0.6 LTS to authenticate Forgejo Actions with AWS through OIDC. The workflow requests a token using:

enable-openid-connect: true

steps:
  - name: Get OIDC Token
    run: |
      curl -6 --fail --silent --show-error \
        -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
        "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=sts.amazonaws.com" \
        | jq -rj '.value' > /tmp/oidc-token

  - name: Configure AWS Credentials
    env:
      AWS_ROLE_ARN: arn:aws:iam::<ACCOUNT_ID>:role/ForgejoActions
      AWS_WEB_IDENTITY_TOKEN_FILE: /tmp/oidc-token
      AWS_ROLE_SESSION_NAME: forgejo-actions
      AWS_REGION: ap-south-1
      AWS_DEFAULT_REGION: ap-south-1
      AWS_USE_DUALSTACK_ENDPOINT: "true"
    run: |
      aws sts get-caller-identity

AWS STS returns: InvalidIdentityToken: The web identity token provided could not be validated.

The token contains the expected values:

iss: https://git.sakthisanthosh.in/api/actions
aud: sts.amazonaws.com
sub: repo:ssanumand/lad-forgejo-aws-oidc:ref:refs/heads/main
alg: RS256

The issuer matches the discovery document, the JWT kid exists in Forgejo’s JWKS, and the JWT signature verifies successfully against the published RSA key. Both public OIDC endpoints return HTTP 200 from AWS CloudShell. The AWS IAM provider and trust policy exactly match these claims and were recreated during troubleshooting. Is there a known compatibility issue between Forgejo 15.0.6 OIDC tokens/JWKS and AWS AssumeRoleWithWebIdentity, or is Forgejo’s JWKS missing a field that AWS requires?


r/forgejo • • Aug 04 '26

etckeeper workflow suggestions?

1 Upvotes

Fleet of linux machines and routers.. looking to have them checkin and push configs to a repo (forgejo)

Getting stuck on the system sshd and included sshd.. can't seem to get the container image to work with the system sshd (which would end up only have one sshd on port 22) ..

Seems running the container in network_mode: host is part of the problem..

anyway..

Internally.. are people just running their container sshd on a different port and just making the adjustment in their systems?

or am I being 'too much' wanting only one sshd; is that even possible?

or is it just not advisable?

TIA