urlchecker-python icon indicating copy to clipboard operation
urlchecker-python copied to clipboard

Use Travis variable for Codacy token in Travis automation script

Open SuperKogito opened this issue 4 years ago • 6 comments

SuperKogito avatar Apr 17 '21 20:04 SuperKogito

I am still not done, I am actually testing here, because I am not sure about the correct syntax. I will let you know once I get it to work so you can take a look at it.

SuperKogito avatar Apr 17 '21 20:04 SuperKogito

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@08fc1bb). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #53   +/-   ##
=========================================
  Coverage          ?   76.76%           
=========================================
  Files             ?       12           
  Lines             ?      383           
  Branches          ?        0           
=========================================
  Hits              ?      294           
  Misses            ?       89           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 08fc1bb...ec529ef. Read the comment docs.

codecov[bot] avatar Apr 17 '21 20:04 codecov[bot]

@vsoch so far I tried different approaches and none worked? any idea what am I doing wrong here? do you think it is the syntax or something else?

SuperKogito avatar Apr 17 '21 22:04 SuperKogito

For GitHub actions?

vsoch avatar Apr 17 '21 22:04 vsoch

Oh for travis. You should be able to define it in Travis settings (secrets as they show) and then reference it as an environment variable.

vsoch avatar Apr 17 '21 22:04 vsoch

I'd probably encrypt it https://docs.travis-ci.com/user/environment-variables/#defining-encrypted-variables-in-travisyml

vsoch avatar Apr 17 '21 22:04 vsoch