Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solving the test.pypi release issue #96

Open
mohammadamint opened this issue Nov 6, 2023 · 7 comments · Fixed by #97
Open

solving the test.pypi release issue #96

mohammadamint opened this issue Nov 6, 2023 · 7 comments · Fixed by #97
Assignees
Labels
enhancement New feature or request

Comments

@mohammadamint
Copy link
Collaborator

To make the test.pypi Action work, the first release should be done manually, to get the API Token.

The API Token needs to be updated accordingly.

@mohammadamint mohammadamint self-assigned this Nov 6, 2023
mohammadamint added a commit that referenced this issue Nov 6, 2023
updating the secrets for API Token for the automatic test release of
software after Pushes and PRs to developemnt and main
@FLomb FLomb added the enhancement New feature or request label Nov 7, 2023
FLomb added a commit that referenced this issue Nov 7, 2023
This fixes the problem currently blocking PR #96
mohammadamint pushed a commit that referenced this issue Nov 7, 2023
This fixes the problem currently blocking PR #96
@Bachibouzouk Bachibouzouk linked a pull request Nov 7, 2023 that will close this issue
Bachibouzouk pushed a commit that referenced this issue Nov 7, 2023
updating the secrets for API Token for the automatic test release of
software after Pushes and PRs to developemnt and main
FLomb added a commit that referenced this issue Nov 8, 2023
solving the test.pypi release issue #96
@FLomb
Copy link
Contributor

FLomb commented Nov 8, 2023

This was addressed by PR #97

@FLomb FLomb closed this as completed Nov 8, 2023
@Bachibouzouk Bachibouzouk reopened this Mar 11, 2024
@Bachibouzouk
Copy link
Collaborator

It seems the automatic push on test_pypi fails because of authentification problems

Error: Trusted publishing exchange failure: 
OpenID Connect token retrieval failed: GitHub: missing or insufficient OIDC token permissions, the ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variable was unset

The workflow context indicates that this action was called from a
pull request on a fork. GitHub doesn't give these workflows OIDC permissions,
even if `id-token: write` is explicitly configured.

To fix this, change your publishing workflow to use an event that
forks of your repository cannot trigger (such as tag or release
creation, or a manually triggered workflow dispatch).

@Bachibouzouk
Copy link
Collaborator

@mohammadamint can you have a look at this?

@Bachibouzouk
Copy link
Collaborator

@FLomb - I reopened this issue concerning the test-pypi issue. It is probably due to the 2FA now enforced on pypi/test-pypi

@mohammadamint
Copy link
Collaborator Author

@mohammadamint can you have a look at this?

Sorry @Bachibouzouk I was out for a couple of days. I will take a look to it by the end of the day of it is ok. In case it is urgent, we can probably ignore the issue

@mohammadamint
Copy link
Collaborator Author

https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

Hi Pierre,

SOrry for the late reply. I am in a long mission to Africa, and very bad internet access. I will solve this issue as soon as I come back to normal life!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants