Commit Graph

3 Commits

Author SHA1 Message Date
askalf
dbd3a6024b report the resolved commit when a ref is downloaded without a SHA
On the REST API fallback, a ref given without a SHA (a branch or tag of
another repository, or the default branch) left the commit output empty: the
archive was downloaded by ref and nothing recorded which commit that was.

downloadRepository now resolves the ref to its commit first
(GET /repos/{owner}/{repo}/commits/{ref} with the sha media type), downloads
that commit, and returns its SHA, which getSource sets as the output. The
downloaded content and the reported SHA are the same commit even if the ref
moves meanwhile. If the ref cannot be resolved, the download falls back to
the ref as before, a warning is logged, and the output stays empty.
2026-09-28 15:38:49 -04:00
Aiqiao Yan
d914b262ff
upgrade module to esm and update dependencies (#2463)
* upgrade module to esm so I can update dependencies

* fix ci failures
2026-06-16 17:10:58 -04:00
Yashwanth Anantharaju
1cce3390c2
Fix checkout init for SHA-256 repositories (#2439)
Some checks failed
Build and Test / test (macos-latest) (push) Waiting to run
Build and Test / test (windows-latest) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Failing after 3s
Build and Test / test (ubuntu-latest) (push) Failing after 1s
Build and Test / test-bypass-proxy (push) Failing after 1s
Build and Test / test-output (push) Failing after 1s
Build and Test / test-proxy (push) Failing after 14s
Check dist / check-dist (push) Failing after 59s
Licensed / Check licenses (push) Failing after 1m13s
Build and Test / build (push) Failing after 1m14s
Build and Test / test-git-container (push) Failing after 1m25s
* Fix checkout init for SHA-256 repositories

* Remove unused object format result field
2026-06-01 11:35:58 -04:00