You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Maven to access this dependency, we need to use a Personal Access Token (PAT) from Github. This causes a bit of a headache when it comes to CI builds on GitHub Actions. For the CI build on GitHub Actions, we have to pass the PAT using Secrets as CLI params to mvn e.g:
This becomes a problem when we want to run CI on PRs from forked repositories as we have to use the pull_request_target event to expose the secret to the CI pipeline rather than just the pull_request event. So essentially we have to use elevated privileges on our CI pipelines just to read the package from GitHub packages. We of course give the PAT minimal permissions (i.e read:packages only), but the rest of our repository secrets are now less secure than they were.
This could be solved by publishing the JARs to a Maven repository that does not require authentication e.g repository.jboss.org
The text was updated successfully, but these errors were encountered:
Hi,
We have the following dependency in our Java project:
For Maven to access this dependency, we need to use a Personal Access Token (PAT) from Github. This causes a bit of a headache when it comes to CI builds on GitHub Actions. For the CI build on GitHub Actions, we have to pass the PAT using Secrets as CLI params to
mvn
e.g:and then in
settings.xml
:This becomes a problem when we want to run CI on PRs from forked repositories as we have to use the
pull_request_target
event to expose the secret to the CI pipeline rather than just thepull_request
event. So essentially we have to use elevated privileges on our CI pipelines just to read the package from GitHub packages. We of course give the PAT minimal permissions (i.eread:packages
only), but the rest of our repository secrets are now less secure than they were.This could be solved by publishing the JARs to a Maven repository that does not require authentication e.g repository.jboss.org
The text was updated successfully, but these errors were encountered: