forgejo/services/actions
ChristopherHX a9bc590d5d
Add artifacts v4 jwt to job message and accept it (#28885)
This change allows act_runner / actions_runner to use jwt tokens for
`ACTIONS_RUNTIME_TOKEN` that are compatible with
actions/upload-artifact@v4.

The official Artifact actions are now validating and extracting the jwt
claim scp to get the runid and jobid, the old artifact backend also
needs to accept the same token jwt.

---
Related to #28853

I'm not familar with the auth system, maybe you know how to improve this

I have tested
- the jwt token is a valid token for artifact uploading
- the jwt token can be parsed by actions/upload-artifact@v4 and passes
their scp claim validation

Next steps would be a new artifacts@v4 backend.

~~I'm linking the act_runner change soonish.~~
act_runner change to make the change effective and use jwt tokens
<https://gitea.com/gitea/act_runner/pulls/471>
2024-02-02 14:25:59 +00:00
..
auth.go Add artifacts v4 jwt to job message and accept it (#28885) 2024-02-02 14:25:59 +00:00
auth_test.go Add artifacts v4 jwt to job message and accept it (#28885) 2024-02-02 14:25:59 +00:00
cleanup.go Artifacts retention and auto clean up (#26131) 2023-09-06 07:41:06 +00:00
clear_tasks.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
commit_status.go Improve ObjectFormat interface (#28496) 2023-12-19 07:20:47 +00:00
init.go Move notification interface to services layer (#26915) 2023-09-05 18:37:47 +00:00
job_emitter.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
job_emitter_test.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
notifier.go Implement MigrateRepository for the actions notifier (#28920) 2024-01-25 20:06:29 +08:00
notifier_helper.go Fix an actions schedule bug (#28942) 2024-01-31 14:55:12 +00:00
schedule_tasks.go Fix an actions schedule bug (#28942) 2024-01-31 14:55:12 +00:00