Skip to content

Commit

Permalink
Add info how to authenticate to github packages (#50)
Browse files Browse the repository at this point in the history
* Add info how to authenticate to github packages

* Remove unneded scopes for PAT

Co-authored-by: Felix Dittrich <31076102+f11h@users.noreply.github.com>
  • Loading branch information
zeridon and f11h committed May 11, 2021
1 parent c3cc3a2 commit 44adfb6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ The issuer backend is accessed by the [issuer web frontend](https://github.com/e
- [Open JDK 11](https://openjdk.java.net)
- [Maven](https://maven.apache.org)
- [Docker](https://www.docker.com)
- Authenticate to [Github Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry)

#### Authenticating in to GitHub Packages

As some of the required libraries (and/or versions are pinned/available only from GitHub Packages) You need to authenticate
to [GitHub Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry)
The following steps need to be followed

- Create [PAT](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with scopes:
- `read:packages` for downloading packages
- Copy/Augment `~/.m2/settings.xml` with the contents of `settings.xml` present in this repository
- Replace `${app.packages.username}` with your github username
- Replace `${app.packages.password}` with the generated PAT

### Build

Expand Down

0 comments on commit 44adfb6

Please sign in to comment.