fix: cherry-pick upstream v1.26.2 security and actions fixes #704
Reference in New Issue
Block a user
Delete Branch "fix/v1262-security-cherrypicks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Cherry-picks 6 upstream fixes from
release/v1.26into MokoGitea:UpdateLogfinalize idempotently (#37885)workflow_dispatchfor workflows without that trigger (#37660)workflow_callfrom workflow trigger detection (#37894)Details
All namespace imports translated (
code.gitea.io/gitea→code.mokoconsulting.tech/MokoConsulting/MokoGitea). External module imports (code.gitea.io/actions-proto-go) left unchanged.The snap/snapcraft.yaml
sedhack that replacedos.Getuid()with1is removed — snap containers are now detected natively bymustNotRunAsRoot().Completes #225 (all 27 v1.26.2 items now cherry-picked).
Closes #379, #380, #381, #382 (upstream actions fixes).
Test plan
go buildsucceedsactions_log_finalize_test.go,actions_trigger_test.go,pull_status_test.gojobparser/model_test.go,util_render_test.goworkflow_dispatchtrigger returns 422UpdateLogfinalize idempotently (#37885) (#37892) a063c3b2e4workflow_callfrom workflow trigger detection (#37894) (#37899)