From f3739e875a19baba2c3032baa5c938397a7ed7b2 Mon Sep 17 00:00:00 2001
From: cballevre <celestin.ballevre@protonmail.com>
Date: Thu, 9 Feb 2023 18:20:08 +0100
Subject: [PATCH] fix(cozy-ci): Use token instead password into .transifexrc

You can find more infos on .transifexrc and their config in [transifex cli code](https://github.com/transifex/cli/blob/devel/examples/exampleconf/.transifexrc)
---
 packages/cozy-ci/README.md    | 6 ++----
 packages/cozy-ci/transifex.sh | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/packages/cozy-ci/README.md b/packages/cozy-ci/README.md
index 754ca2fc9a..77e3f9e804 100644
--- a/packages/cozy-ci/README.md
+++ b/packages/cozy-ci/README.md
@@ -16,9 +16,7 @@ Requires a file named `.transifexrc.tpl` at the root of the project. The usual c
 
 ```
 [https://www.transifex.com]
-hostname = https://www.transifex.com
-username = cozy
-token =
+rest_hostname = https://rest.api.transifex.com
 ```
 
-Also requires an env var named `TX_PASSWD` which contains the password/token for the account referenced in the `.transifexrc.tpl` file.
+Also requires an env var named `TX_TOKEN` which contains the token for your transifex accound in the `.transifexrc.tpl` file.
diff --git a/packages/cozy-ci/transifex.sh b/packages/cozy-ci/transifex.sh
index 65241d9e7d..7e9b856dd4 100755
--- a/packages/cozy-ci/transifex.sh
+++ b/packages/cozy-ci/transifex.sh
@@ -2,4 +2,4 @@
 
 curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
 install -m0644 .transifexrc.tpl ~/.transifexrc
-echo "password = $TX_PASSWD" >> ~/.transifexrc
+echo "token = $TX_TOKEN" >> ~/.transifexrc