forgejo/routers/api/actions
Nils Goroll 180bd488e1 chore: Add JWT() method for convenience and clarity (#11067)
This slightly simplifies calling code by centralizing the common 3-liner to create a JWT from claims, signed by a key.

But more importantly, it reduces the risk of `key.PreProcessToken()` being forgotten, which will become relevant in upcoming PRs:

`key.PreProcessToken()` adds the key id to the JWT header, which is important to efficiently validate tokens when multiple validation keys are supported (that is not the case yet)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11067
Co-authored-by: Nils Goroll <nils.goroll@uplex.de>
Co-committed-by: Nils Goroll <nils.goroll@uplex.de>
2026-02-07 01:01:30 +01:00
..
ping chore: use code.forgejo.org/forgejo/actions-proto (#9981) 2025-11-05 16:10:52 +01:00
runner fix: don't return AdditionalTasks from FetchTask if there is no Task (#10899) 2026-01-17 23:36:30 +01:00
actions.go feat: add OIDC workload identity federation support (#10481) 2026-01-15 03:39:00 +01:00
artifact.pb.go Actions Artifacts v4 backend (#28965) 2024-03-06 12:10:45 +08:00
artifact.proto Actions Artifacts v4 backend (#28965) 2024-03-06 12:10:45 +08:00
artifacts.go chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
artifacts_chunks.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
artifacts_utils.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
artifactsv4.go chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
id_token.go chore: Add JWT() method for convenience and clarity (#11067) 2026-02-07 01:01:30 +01:00
oidc.go feat: add OIDC workload identity federation support (#10481) 2026-01-15 03:39:00 +01:00