Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Bug 1553096 - Do not put Treeherder route when on untrusted repo #2921

Merged
merged 1 commit into from
Jul 4, 2019

Conversation

JohanLorenzo
Copy link
Contributor

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1553096#c6

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

@JohanLorenzo JohanLorenzo requested a review from a team as a code owner May 28, 2019 12:54
@JohanLorenzo JohanLorenzo changed the title Bug 1553096 - Do not put Treeherder route when on untrusted repo [WIP] Bug 1553096 - Do not put Treeherder route when on untrusted repo May 28, 2019
@JohanLorenzo JohanLorenzo self-assigned this May 28, 2019
@JohanLorenzo
Copy link
Contributor Author

Please do not land before https://bugzilla.mozilla.org/show_bug.cgi?id=1553096#c8 is responded

@sblatz
Copy link
Contributor

sblatz commented Jul 1, 2019

@JohanLorenzo Is this safe to land or should we close it?

@JohanLorenzo JohanLorenzo requested a review from a team as a code owner July 2, 2019 12:06
@JohanLorenzo JohanLorenzo changed the title [WIP] Bug 1553096 - Do not put Treeherder route when on untrusted repo Bug 1553096 - Do not put Treeherder route when on untrusted repo Jul 2, 2019
@JohanLorenzo
Copy link
Contributor Author

Thanks for digging this PR up @sblatz, it had slipped my mind! r? @mitchhentges

.taskcluster.yml Outdated
- statuses # Automatically added by taskcluster-github. It must be explicit because of Chain of Trust
- $if: 'trust_level == 3'
then:
- tc-treeherder.v2.fenix.${head_rev}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this is indented too far

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, I'm not sure to follow this sentence. Would you mind expanding on it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure - I think there's a formatting issue, where this line is 2 spaces too far.
Right now, it looks like:

          routes:
            $flatten:
              - statuses  # Automatically added by taskcluster-github. It must be explicit because of Chain of Trust
              - $if: 'trust_level == 3'
                then:
                    - tc-treeherder.v2.fenix.${head_rev}
else: []

and it should look like

          routes:
            $flatten:
              - statuses  # Automatically added by taskcluster-github. It must be explicit because of Chain of Trust
              - $if: 'trust_level == 3'
                then:
                  - tc-treeherder.v2.fenix.${head_rev}
else: []

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

facepalms My apologies, I kept reading "intended too far", instead of "indented too far". Thanks for catching it, and for the thorough explanations. Fixed

@JohanLorenzo JohanLorenzo merged commit fb4cfb1 into mozilla-mobile:master Jul 4, 2019
@JohanLorenzo JohanLorenzo deleted the fix-th-scope branch July 4, 2019 08:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants