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

Commit

Permalink
Bug 1580778 - Fix duplicated scopes (#5515)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLorenzo authored Sep 24, 2019
1 parent 6a8f722 commit 01f3c85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion taskcluster/fenix_taskgraph/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def configure_gradlew(config, job, taskdesc):
run["command"] = _extract_command(run)
secrets = run.pop("secrets", [])
scopes = taskdesc.setdefault("scopes", [])
scopes.extend(["secrets:get:{}".format(secret["name"]) for secret in secrets])
new_secret_scopes = ["secrets:get:{}".format(secret["name"]) for secret in secrets]
new_secret_scopes = list(set(new_secret_scopes)) # Scopes must not have any duplicates
scopes.extend(new_secret_scopes)

run["cwd"] = "{checkout}"
run["using"] = "run-task"
Expand Down

0 comments on commit 01f3c85

Please sign in to comment.