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

Remove PyPI token from publish.yml workflow #60

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

AdamRJensen
Copy link
Member

This change in method was initiated by a comment raised here.

image

I have added the pvlib/twoaxistracking/.github/workflows/publish.yml file as a trusted publisher.

image

@AdamRJensen
Copy link
Member Author

AdamRJensen commented Dec 9, 2024

@kandersolar I assume one can simply just remove the token and password which would be nice to eliminate (so people can't print the PyPI token or password in a malicious PR)

@kandersolar
Copy link
Member

+1 from me. Let's try it out on another pre-release like you suggested.

so people can't print the PyPI token or password in a malicious PR

IIRC, GitHub Actions redacts secrets that it detects being printed out in logs, but of course the broader point of not having long-lived secrets available to CI jobs is still a good idea.

@AdamRJensen AdamRJensen merged commit fb60d00 into main Dec 11, 2024
17 checks passed
@AdamRJensen AdamRJensen deleted the remove_pypi_token branch December 11, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants