Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Documentation update #55

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

scottmcarthur-heb
Copy link

@scottmcarthur-heb scottmcarthur-heb commented May 10, 2019

Added documentation to explain how to use Github access tokens with this wagon. Github API V3 has changed the way that authentication works with access tokens.

Instruction summary:

Github Auth with Access Token

When using an access token, the Github V3 API expects that the token be in the Authorization header as a bearer token. Add server entries into your settings.xml file like this:

<settings>
  ...
  <servers>
    <server>
    <id>your-repo-id</id>
    <configuration>
      <httpHeaders>
        <property>
          <name>Authorization</name>
          <value>Bearer ${github.accesstoken}</value>
        </property>
      </httpHeaders>
    </configuration>
    </server>
  ...
  </servers>
  ...
</settings>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant