Accessing API read-only from build worker without a token

Rondom's Avatar

Rondom

16 Jun, 2017 08:42 PM

Hello,
would it be possible to use the API without a token in a read-only manner from the build workers?

I have two use cases for this and they both should run also (or especially) on pull requests without disclosing any "all-or-nothing" credentials.

One use case is as follows:
When doing a PR-build, compare the set of passed/failed/skipped/ignored tests or compiler warnings to the ones for the latest build of the master-branch. Post a comment on the PR on GitHub with the counts (+/-).

The other use case is testing on two OSes:
Re-using the artifact from one configuration in another "configuration" that runs the "Visual Studio 2017"-image. This way we could test both on Win2012R2 and on Win2016.

  1. Support Staff 1 Posted by Feodor Fitsner on 16 Jun, 2017 09:36 PM

    Feodor Fitsner's Avatar

    Of course, whatever public project you can see on UI can be accessed via API without any credentials.

  2. 2 Posted by Rondom on 18 Jun, 2017 04:17 AM

    Rondom's Avatar

    Thanks. Everything works as expected. It was not clear to me from the documentation that anonymous access is possible. Maybe you can add some sentence stating that here: https://www.appveyor.com/docs/api/#authentication

    Unfortunately I encountered two issues with the new image, but I am sure they can get solved somehow.

    https://github.com/appveyor/ci/issues/1614
    https://github.com/appveyor/ci/issues/1615

    As always, thanks for your fantastic support!

  3. Support Staff 3 Posted by Feodor Fitsner on 18 Jun, 2017 06:33 PM

    Feodor Fitsner's Avatar

    Hm, what happened to those issues? Both links give me 404.

  4. 4 Posted by Rondom on 18 Jun, 2017 06:54 PM

    Rondom's Avatar

    The links work fine for me?

  5. Support Staff 5 Posted by Feodor Fitsner on 18 Jun, 2017 07:10 PM

    Feodor Fitsner's Avatar

    See them now. Not sure what was that - must be a glitch.

    -Feodor Fitsner, AppVeyor
    ________________________________

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:17 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac