SnapShot icon indicating copy to clipboard operation
SnapShot copied to clipboard

Adding API key to travis. To prevent exposing the API key

Open Yog9 opened this issue 5 years ago • 9 comments

Yog9 avatar Apr 28 '20 03:04 Yog9

I can work on it can you assign it to me?

var-sha612 avatar Apr 28 '20 03:04 var-sha612

Hi @Yog9 can you try this https://stackoverflow.com/questions/9338428/using-secret-api-keys-on-travis-ci ? I am unable to build forked repos in travis so just wanted to see if this works for you. if not I am planning to clone and try building from my side

var-sha612 avatar May 28 '20 12:05 var-sha612

@junevarsha correct me if i'm wrong, but I believe you could hide the api keys in a .env file, I've done it with Node projects. BUT I have no clue if that would help with Travis CI.

jcstang avatar Jun 03 '20 18:06 jcstang

@junevarsha Sure I will try this and let you know

Yog9 avatar Jun 05 '20 03:06 Yog9

Hey @Yog9 , did you work on it? I'm a front-end newbie and looking for repos to contribute to. I can add .env file (like @jcstang suggested) and make the API key private.

SelloFotoyi avatar Apr 17 '21 06:04 SelloFotoyi

Hi! Can I help with this? I would be happy to contribute!

white-wolf97 avatar Jan 13 '23 10:01 white-wolf97

hi! is the issue resolved? or i can take it.

KAUSTUBHDUBEY790 avatar Apr 09 '23 19:04 KAUSTUBHDUBEY790

I tried adding the api key to a .env file and then accessing it in the API call function but it doesn't work. All .env variables come as undefined even though you've defined those.

charu167 avatar Jun 20 '23 07:06 charu167

@Yog9 is the issue still Open? if yes can you assign or ping

Haneef-Shaik avatar Aug 23 '23 12:08 Haneef-Shaik