2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00

[fenix] Bug 1781051 - simplify setting ownerEmail in .taskcluster.yml

Remove special cases for bors and github-actions:
- bors is no longer used for this, as far as I know
- the github-actions special case breaks chain-of-trust's ability to
  rebuild the decision task definition: because we don't leave a
  breadcrumb to record event.sender.login, it has to guess, and if it
  gets it wrong, chain of trust verification fails
This commit is contained in:
Julien Cristau 2022-09-08 18:21:37 +02:00 committed by mergify[bot]
parent a9091f86fa
commit 62ca4f4ca7

View File

@ -13,17 +13,11 @@ tasks:
$if: 'tasks_for in ["cron", "action"]' $if: 'tasks_for in ["cron", "action"]'
then: '${tasks_for}@noreply.mozilla.org' then: '${tasks_for}@noreply.mozilla.org'
else: else:
$if: 'event.sender.login == "bors[bot]"' $if: 'tasks_for == "github-push"'
then: 'skaspari+mozlando@mozilla.com' # It must match what's in bors.toml then: '${event.pusher.email}'
else: else:
$if: 'event.sender.login == "github-actions[bot]"' $if: 'tasks_for == "github-pull-request"'
then: 'github-actions[bot]@users.noreply.github.com' then: '${event.pull_request.user.login}@users.noreply.github.com'
else:
$if: 'tasks_for == "github-push"'
then: '${event.pusher.email}'
else:
$if: 'tasks_for == "github-pull-request"'
then: '${event.pull_request.user.login}@users.noreply.github.com'
baseRepoUrl: baseRepoUrl:
$if: 'tasks_for == "github-push"' $if: 'tasks_for == "github-push"'
then: '${event.repository.html_url}' then: '${event.repository.html_url}'