Skip to content

Fix CI: actions/cache SHA pin and bundler PATH#4

Open
klp2 wants to merge 2 commits intomainfrom
kphair/fix-cache-sha
Open

Fix CI: actions/cache SHA pin and bundler PATH#4
klp2 wants to merge 2 commits intomainfrom
kphair/fix-cache-sha

Conversation

@klp2
Copy link
Copy Markdown
Contributor

@klp2 klp2 commented Apr 27, 2026

Summary

Two fixes to get the GitHub Pages build green.

  1. actions/cache SHA typo. The pinned SHA for v5.0.4 (6682284cc58b73e9e0655991c2e8e82e47791b2a) shares its first eight hex chars with the real SHA but otherwise differs, so GitHub Actions can't resolve it. Replace with the actual v5.0.4 SHA from upstream (668228422ae6a00e4ad889ee87cd7109ec5666a7). Verified via repos/actions/cache/git/refs/tags/v5.0.4 on github.com. All other workflow SHAs were verified and are correct.

  2. kramdown-rfc not found by make. ruby/setup-ruby with bundler-cache: true installs gems into a Bundler-managed location exposed via bundle exec, not on PATH. The run: make step spawns its own /bin/bash, so the gem binary isn't found. Wire bundle exec into the Makefile's KRAMDOWN_RFC variable so plain make works in both CI and local devenvs. xml2rfc is left bare since actions/setup-python puts it on PATH directly.

Test plan

  • Build Drafts step resolves actions/cache and runs to completion.
  • kramdown-rfc is invoked successfully via bundle exec.
  • HTML and TXT outputs are uploaded as the Pages artifact.
  • After merge, Editor's Copy build on main succeeds and Pages deploy publishes.

🤖 Generated with Claude Code

The pinned SHA for actions/cache v5.0.4 contained a typo
(6682284cc58b73e9e0655991c2e8e82e47791b2a) that shares its first
eight hex chars with the real SHA but otherwise differs, so GitHub
Actions failed to resolve the action at workflow run time. Replace
with the actual v5.0.4 SHA from upstream.

Verified by querying repos/actions/cache/git/refs/tags/v5.0.4 on
github.com.
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

ruby/setup-ruby with bundler-cache=true installs gems into a
Bundler-managed location whose bin directory is exposed via
'bundle exec', not added to PATH. The 'run: make' step in the
workflow spawns its own /bin/bash, so kramdown-rfc was unfound.

Wire 'bundle exec' into the KRAMDOWN_RFC variable so plain 'make'
works in both CI and local devenvs without requiring developers
to remember 'bundle exec make'. Override via the variable if
invoking a globally installed kramdown-rfc.

xml2rfc is left as a bare command because actions/setup-python
adds its bin directory to PATH directly.
@klp2 klp2 changed the title Fix actions/cache SHA pin Fix CI: actions/cache SHA pin and bundler PATH Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant