Skip to content

Support tar.gz binarySource - #5

Merged
gauron99 merged 2 commits into
mainfrom
push-sqosurmnusoo
Nov 19, 2026
Merged

gauron99 merged 2 commits into
mainfrom
push-sqosurmnusoo

Conversation

@gauron99

@gauron99 gauron99 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator
  • binarySource can point to a tar.gz; new binarySubpath input names the binary inside it (detected by content, not URL)
  • bump actions/checkout v4 -> v7 in the test workflow

🤖 Generated with Claude Code

@gauron99 gauron99 changed the title Add imageSource: get func binary from a container image Support a tar.gz binarySource Nov 17, 2026
@gauron99 gauron99 changed the title Support a tar.gz binarySource Support tar.gz binarySource, move to Node 24 Nov 18, 2026
…ySubpath

After the download, the action checks the file's first two bytes. The
gzip magic (1f 8b) means a tar.gz, since no func binary (ELF, Mach-O,
PE) starts with it, so this works for any URL, with or without a
.tar.gz suffix.

New input binarySubpath: path of the binary inside the archive. It has
no default, as archives name the binary differently. The action fails
if a tar.gz comes without binarySubpath, if binarySubpath comes with a
plain binary, or if binarySubpath does not name a file inside the
archive (a path that leaves it, like ../x, counts as not found).

The download and the unpacking happen in a temp folder, and only the
final binary is copied to its destination, so a failed run leaves
nothing there. tar runs with relative names, so a GNU tar on Windows
never reads the drive letter of a path as a remote host.

CI: one job packs a release binary on Linux, macOS and Windows and
installs it through a file:// URL; another runs the three error cases
and checks that they leave no func behind.
v5 moved to Node 24, v6 stores credentials in a separate file, v7
blocks fork PR checkouts on pull_request_target and workflow_run. None
of these affect this workflow, which runs on pull_request and
workflow_dispatch.
@gauron99
gauron99 force-pushed the push-sqosurmnusoo branch 2 times, most recently from 0f97a2a to ba52931 Compare November 19, 2026 16:44
@gauron99 gauron99 changed the title Support tar.gz binarySource, move to Node 24 Support tar.gz binarySource Nov 19, 2026
@gauron99
gauron99 merged commit 3889312 into main Nov 19, 2026
13 checks passed
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.

1 participant