github package registry authentication of organisation under maven

I constructed a settings.xml file for uploading files in the  package registry through maven. For the USERNAME I entered my personal email address and for the password I used ${{ ** secrets.GITHUB_TOKEN }}**. This works fine.

But I have not found a way to authenticate as my organisation. I tried the name, the display name and the email, nothing works (Access denied). I do not like to put my personal email address in the workflow file of my organistation.

Is there a solution to authenticate as the organisation?

oops, sorry, typo, you can use the name of the organisation.

Hello,

I experienced same issue with my organization. I tried many things according this page https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-apache-maven-for-use-with-github-packages#installing-a-package but nothing happen.  mvn deploy command couse this error: Failed to retrieve remote metadata com.artimetrik.isg:health-surveillance:0.0.1-SNAPSHOT/maven-metadata.xml: Could not transfer metadata com.artimetrik.isg:health-surveillance:0.0.1-SNAPSHOT/maven-metadata.xml from/to github-nexus (https://maven.pkg.github.com/artimetrik/health-surveillance): Not authorized

Could you help me please?