1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00
forgejo/services/actions
yp05327 829c3c6838
Use action user as the trigger user of schedules (#30581)
Follow https://github.com/go-gitea/gitea/pull/30357

When user push to default branch, the schedule trigger user will be the
user.
When disable then enable action units in settings, the schedule trigger
user will be action user.
When repo is a mirror, the schedule trigger user will be action user. (
before it will return error, fixed by #30357)

As scheduled job is a cron, the trigger user should be action user from
Gitea, not a real user.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit cb6814adad4dc81a683b50826a211ce7bce731d7)

Conflicts:
	- services/actions/notifier_helper.go
	  Conflict resolved by keeping Forgejo's version of the line.
2024-04-21 16:28:16 +02:00
..
auth.go Add ac claim for old docker/build-push-action@v3 / current buildx gha cache (#29584) 2024-03-11 23:36:58 +07:00
auth_test.go Add interface{} to any replacement to make fmt, exclude *.pb.go (#30461) 2024-04-15 20:01:36 +02:00
cleanup.go Expire artifacts before deleting them physically (#29241) 2024-02-23 09:06:14 +01: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 fix(actions): call automerge service on successful commit state 2024-04-15 16:17:45 +02:00
init.go Move notification interface to services layer (#26915) 2023-09-05 18:37:47 +00:00
job_emitter.go The job should always run when if is always() (#29464) 2024-03-06 12:10:44 +08:00
job_emitter_test.go The job should always run when if is always() (#29464) 2024-03-06 12:10:44 +08:00
main_test.go [ACTIONS] skip superflous pull request synchronized event (#2314) 2024-02-11 13:06:54 +00:00
notifier.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
notifier_helper.go Use action user as the trigger user of schedules (#30581) 2024-04-21 16:28:16 +02:00
notifier_helper_test.go [ACTIONS] skip superflous pull request synchronized event (#2314) 2024-02-11 13:06:54 +00:00
rerun.go Fix bugs in rerunning jobs (#29955) 2024-03-26 19:04:26 +01:00
rerun_test.go Fix bugs in rerunning jobs (#29955) 2024-03-26 19:04:26 +01:00
schedule_tasks.go Remove scheduled action tasks if the repo is archived (#30224) 2024-04-07 15:40:31 +02:00
variables.go Add API for Variables (#29520) 2024-04-07 10:57:53 +02:00