# How to make sure the ./transifexrc is correct in Github Action

**URL:** <https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929>\
**Category:** Q&A\
**Created:** [June 30, 2022, 3:14am UTC](https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929 "2022-06-30T03:14:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mendax1234](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/mendax1234/32/2163_2.png) [@mendax1234](https://community.transifex.com/u/mendax1234)\
**Post date:** [June 30, 2022, 3:14am UTC](https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929/1 "2022-06-30T03:14:50Z")

</div>

l try to push and pull through github action automatically, but it goes wrong and below is the wrong message .

```auto
tx INFO: Updating /home/runner/.transifexrc file...
tx INFO: Using TX_TOKEN environment variable. Credentials won't be saved to .transifexrc.
tx ERROR: Authorization Required
tx ERROR: 
Error: Authentication failed. Please make sure your credentials are valid.
For more information, visit:
https://docs.transifex.com/client/client-configuration#-transifexrc.

```

l have checked my .transifexrc file and it is correct since l can use `tx push -s` from the local development environment. So what’s wrong with that? And here is my repo: [mendax1234/6940Swerve-docs: FRC Team 6940’s Swerve Documentation Powered by Read the Docs (github.com)](https://github.com/mendax1234/6940Swerve-docs)

---

<div class="post-metadata">

**Author:** ![Mylon](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/mylon/32/2139_2.png) [@Mylon](https://community.transifex.com/u/Mylon)\
**Post date:** [June 30, 2022, 12:08pm UTC](https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929/2 "2022-06-30T12:08:11Z")

</div>

Hello mendax1234,

The contents of the .transifexrc file should look like this:

```auto
[https://www.transifex.com]
rest_hostname = https://rest.api.transifex.com
token = API token goes here

```

This [article](https://docs.transifex.com/account/authentication) explains how to generate an API token. You have probably already done this but I’m just making sure we cover all our bases before moving forward to other possibilities.

Keep in mind that those tokens need to originate from your own account and that you have access to the organization and project you are trying to take action on.

Please let me know if any of these suggestions helped solve your issue and if not can you provide me with the project you’re trying to work on and receive this error from?

Kind regards,

Antonis

---

<div class="post-metadata">

**Author:** ![mendax1234](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/mendax1234/32/2163_2.png) [@mendax1234](https://community.transifex.com/u/mendax1234)\
**Post date:** [June 30, 2022, 3:09pm UTC](https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929/3 "2022-06-30T15:09:42Z")

</div>

It doesn’t work for me.

> [@Mylon](#):
>
> if not can you provide me with the project you’re trying to work on and receive this error from?

Here is my project: [mendax1234/6940Swerve-docs: FRC Team 6940’s Swerve Documentation Powered by Read the Docs (github.com)](https://github.com/mendax1234/6940Swerve-docs)

And l get the error from Github action , but it seems that only me have the access to look its detail , but l have provided the error message in my first post.

> [@Mylon](#):
>
> This [article](https://docs.transifex.com/account/authentication) explains how to generate an API token. You have probably already done this but I’m just making sure we cover all our bases before moving forward to other possibilities.
> 
> Keep in mind that those tokens need to originate from your own account and that you have access to the organization and project you are trying to take action on.

Besides, my .transifexrc file used to look like this.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/transifex/original/2X/7/70b3b6dd34c86eb52b3c077f777a8482afab3b47.png)  
But after l have changed to your url , it doesn’t work as well. Besides , l can push and pull from my local development environment without problem.

---

<div class="post-metadata">

**Author:** ![mendax1234](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/mendax1234/32/2163_2.png) [@mendax1234](https://community.transifex.com/u/mendax1234)\
**Post date:** [July 1, 2022, 2:56am UTC](https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929/5 "2022-07-01T02:56:03Z")

</div>

I think l don’t create an environmetn variable. l have checked your docs and find that l don’t have an `export` command.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/transifex/original/2X/1/19aee39dd7ea5c0764ad75ecafb618d769156801.png)

l use Windows.

---

<div class="post-metadata">

**Author:** ![mendax1234](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/mendax1234/32/2163_2.png) [@mendax1234](https://community.transifex.com/u/mendax1234)\
**Post date:** [July 1, 2022, 3:36am UTC](https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929/6 "2022-07-01T03:36:58Z")

</div>

l have fixed this problem but l go into a new one.

```auto
Run python scripts/lock-translations.py .tx/config
  
Using TX Config Path: .tx/config
Error retrieving remote resources 404
Error: Process completed with exit code 1.

```

And my lock-translations.py is in the /scripts folder

---

<div class="post-metadata">

**Author:** ![mendax1234](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/mendax1234/32/2163_2.png) [@mendax1234](https://community.transifex.com/u/mendax1234)\
**Post date:** [July 1, 2022, 6:07am UTC](https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929/7 "2022-07-01T06:07:54Z")

</div>

I have fixed all the bugs and sorry for causing you so much inconvenienve.

Best  
Daniel

---

<div class="post-metadata">

**Author:** ![Mylon](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/mylon/32/2139_2.png) [@Mylon](https://community.transifex.com/u/Mylon)\
**Post date:** [July 1, 2022, 11:03am UTC](https://community.transifex.com/t/how-to-make-sure-the-transifexrc-is-correct-in-github-action/2929/8 "2022-07-01T11:03:47Z")

</div>

Hello Daniel,

I’m glad that you found a solution to your issue! From what I’m gathering, after you figured out how to solve the problem with the API token, there was another issue with your lock-translations.py file that you fixed, and after that, everything worked as it should.

Please let me know if anything else arises, and I will be happy to assist you.

Kind regards,

Antonis
