gitea/services
Rowan Bohde 0b5da27570
allow the actions user to login via the jwt token (#32527) (#32580)
Backport #32527

We have some actions that leverage the Gitea API that began receiving
401 errors, with a message that the user was not found. These actions
use the `ACTIONS_RUNTIME_TOKEN` env var in the actions job to
authenticate with the Gitea API. The format of this env var in actions
jobs changed with go-gitea/gitea/pull/28885 to be a JWT (with a
corresponding update to `act_runner`) Since it was a JWT, the OAuth
parsing logic attempted to parse it as an OAuth token, and would return
user not found, instead of falling back to look up the running task and
assigning it to the actions user.

Make ACTIONS_RUNTIME_TOKEN in action runners could be used, attempting
to parse Oauth JWTs. The code to parse potential old
`ACTION_RUNTIME_TOKEN` was kept in case someone is running an older
version of act_runner that doesn't support the Actions JWT.
2024-11-21 03:18:00 +00:00
..
actions allow the actions user to login via the jwt token (#32527) (#32580) 2024-11-21 03:18:00 +00:00
agit Performance optimization for git push (#30104) 2024-04-09 03:43:17 +00:00
asymkey Fix some pending problems (#29985) 2024-03-22 19:17:30 +08:00
attachment
auth allow the actions user to login via the jwt token (#32527) (#32580) 2024-11-21 03:18:00 +00:00
automerge Fix agit automerge (#31207) (#31881) 2024-08-20 16:20:58 +00:00
context Remove unnecessary code (#32560) (#32567) 2024-11-20 02:55:59 +08:00
contexttest Check if reverse proxy is correctly configured (#30890) (#30935) 2024-05-10 12:34:04 +00:00
convert Fix `/repos/{owner}/{repo}/pulls/{index}/files` endpoint not populating `previous_filename` (#32017) (#32028) 2024-09-12 08:58:43 +09:00
cron Move some asymkey functions to service layer (#28894) 2024-03-04 08:57:39 +00:00
doctor Add a doctor check to disable the "Actions" unit for mirrors (#32424) (#32497) 2024-11-13 18:47:56 +00:00
externalaccount [Fix] Account Linking UpdateMigrationsByType (#31428) (#31434) 2024-06-20 13:53:15 +00:00
feed
forms Refactor push mirror find and add check for updating push mirror (#32539) (#32549) 2024-11-18 23:55:27 +08:00
gitdiff Refactor sha1 and time-limited code (#31023) (#31030) 2024-05-21 00:58:21 +08:00
indexer Update issue indexer after merging a PR (#30715) (#30903) 2024-05-09 13:51:57 +08:00
issue Fix 500 error when `state` params is set when editing issue/PR by API (#31880) (#31952) 2024-09-01 18:38:10 +00:00
lfs Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) (#32397) 2024-11-01 03:53:59 +00:00
mailer Add missing comment reply handling (#32050) (#32065) 2024-09-18 09:23:28 +00:00
markup Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +00:00
migrations Support allowed hosts for migrations to work with proxy (#32025) (#32026) 2024-09-11 14:54:19 +08:00
mirror Refactor push mirror find and add check for updating push mirror (#32539) (#32549) 2024-11-18 23:55:27 +08:00
notify Clean up log messages (#30313) 2024-04-07 19:17:06 +08:00
org Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 2024-04-27 08:03:49 +00:00
packages Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) (#32397) 2024-11-01 03:53:59 +00:00
pull Fix the logic of finding the latest pull review commit ID (#32139) (#32165) 2024-10-01 13:10:03 +09:00
release Trim title before insert/update to database to match the size requirements of database (#32498) (#32507) 2024-11-14 18:06:31 -08:00
repository Refactor find forks and fix possible bugs that weak permissions check (#32528) (#32547) 2024-11-19 04:08:32 +00:00
secrets
task Fix "force private" logic (#31012) (#31021) 2024-05-20 10:27:52 +08:00
uinotification
user Add warn log when deleting inactive users (#32318) (#32321) 2024-10-23 10:48:42 +08:00
webhook Only provide the commit summary for Discord webhook push events (#32432) (#32447) 2024-11-08 09:13:49 +08:00
webtheme Initial support for colorblindness-friendly themes (#30625) 2024-04-24 00:18:41 +08:00
wiki Avoid showing `Failed to change the default wiki branch` if repo has no wiki when saving repo settings (#30329) 2024-04-08 19:43:23 +08:00