Skip to content

Support jobs running in a Python container without jq - #8

Merged
nattylinden merged 5 commits into
mainfrom
nattylinden/shell
Oct 13, 2026
Merged

nattylinden merged 5 commits into
mainfrom
nattylinden/shell

Conversation

@nattylinden

@nattylinden nattylinden commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Currently this Action does not work for a job configured to run in a Python container such as python:3.12:

❌ Run secondlife/cloudsmith-oidc@v1
  ❌ Get OIDC token
    ⏵ Run set -eu
    Retrieving actions OIDC token
    /__w/_temp/3f4db648-2298-4be7-acdd-b76109583a73.sh: line 38: jq: command not found
    Error: Process completed with exit code 127.

jq is available on GitHub's public runner images, so this is usually a reasonable assumption. If jq is not available, let's check if Python is, and if so fall back to plucking the desired JSON fields out of the API responses with it.

See our internal issue for more information. There's also some build maintenance we can do; see the individual commits.

As long as we have curl v7.76 (released 31 Mar 2021), we can use
`--fail-with-body` to still print the response body in fail mode.
…esponses

This can be helpful when running the Action in a container, where perhaps
Python is available but jq is not.
@nattylinden nattylinden self-assigned this Oct 13, 2026
@nattylinden nattylinden added the enhancement New feature or request label Oct 13, 2026
@nattylinden
nattylinden marked this pull request as ready for review October 13, 2026 17:13
@nattylinden
nattylinden requested a review from a team October 13, 2026 17:15

@minddrive minddrive left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good!

@nattylinden

Copy link
Copy Markdown
Contributor Author

Thanks, @minddrive! 🎉

@nattylinden
nattylinden merged commit 14a474c into main Oct 13, 2026
3 checks passed
@nattylinden
nattylinden deleted the nattylinden/shell branch October 13, 2026 20:24
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

Development

Successfully merging this pull request may close these issues.

2 participants