Post meaningful error onto github PR

Hello. I want to include some meaningful message from travis build onto github pull request.

The most obvious solution is to add secret variable and post from inside the build, apparently it’s not working cause travis not injecting secret variables to PR builds.

Is there anything i can do to make it work? I’ve tried to see travis buddy bot and ci-reporter bots, both old, abandoned, and even very basic functionality is broken for them.

Am i understand it right that the only option to post snippet of log from travis to github is to build my own app and/or bring up webserver to use webhook?

Hey @tsipa,

The question isn’t quite clear, but have you tried encrypting your vars, doing:

travis encrypt <api-token>

This may seem obvious, but the initial question isn’t clear. If this isn’t what you’re looking for please post back and I’ll gladly help you further.

Yes, i have tried encrypted variables.
They are not working for pull requests due to:
Encrypted environment variables are not available to pull requests from forks due to the security risk of exposing such information to unknown code.

And effectively i’m unable to post any feedback on codereview, at least not from scripts inside travis.

Hey @tsipa,

It is worth mentioning, encryption and decryption keys are tied to the repository. If you fork a project and add it to Travis CI, it will not have access to the encrypted variables.

Oh, wait, so you saying that for PR’s in the same repo it will work?

Hey @tspia,

As stated encryption and decryption keys are tied to the repository.