You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services/actions
Jason Song 47b912cd52
Avoid panic caused by broken payload when creating commit status (#23216)
When creating commit status for Actons jobs, a payload with nil
`HeadCommit` will cause panic.

Reported at:
https://gitea.com/gitea/act_runner/issues/28#issuecomment-732166

Although the `HeadCommit` probably can not be nil after #23215,
`CreateCommitStatus` should protect itself, to avoid being broken in the
future.

In addition, it's enough to print error log instead of returning err
when `CreateCommitStatus` failed.

---------

Co-authored-by: delvh <dev.lh@web.de>
1 year ago
..
clear_tasks.go Avoid panic caused by broken payload when creating commit status (#23216) 1 year ago
commit_status.go Avoid panic caused by broken payload when creating commit status (#23216) 1 year ago
init.go Implement actions (#21937) 1 year ago
job_emitter.go Implement actions (#21937) 1 year ago
job_emitter_test.go Implement actions (#21937) 1 year ago
notifier.go Add context cache as a request level cache (#22294) 1 year ago
notifier_helper.go Avoid panic caused by broken payload when creating commit status (#23216) 1 year ago