Skip to content

check for string true rather than existence in setup-python-keyring#41

Merged
imjasonh merged 1 commit intochainguard-dev:mainfrom
steven-rand:fix-action-conditional
Dec 8, 2025
Merged

check for string true rather than existence in setup-python-keyring#41
imjasonh merged 1 commit intochainguard-dev:mainfrom
steven-rand:fix-action-conditional

Conversation

@steven-rand
Copy link
Contributor

We saw builds breaking because python -m pip install "keyrings-chainguard-libraries" was executing on custom runners which don't have the python executable installed. The intent seems to be that this step only runs when setup-python-keyring is overriden to true, and not by default, but the current implementation will always run it (the if statement as currently written evaluates to true because the variable exists). This fixes the if statement to only evaluate to true if setup-python-keyring has been overridden to true.

Copy link
Contributor

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bah! Sorry thank you

@imjasonh imjasonh enabled auto-merge (squash) December 8, 2025 15:56
@imjasonh imjasonh merged commit 1b9100b into chainguard-dev:main Dec 8, 2025
8 checks passed
@imjasonh
Copy link
Contributor

imjasonh commented Dec 8, 2025

Thank you for reporting this, and for sending a fix!

I have to ask, are you using setup-chainctl from @main?

@steven-rand
Copy link
Contributor Author

Thank you for reporting this, and for sending a fix!

I have to ask, are you using setup-chainctl from @main?

We were, yeah, although we now have it pinned to the most recent release. I think it was accidental on our part that we were picking up @main instead of a tag.

And thanks for merging!

@steven-rand steven-rand deleted the fix-action-conditional branch December 8, 2025 16:01
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