Repository navigation
chore: use GitHub's self-repository syntax - #147
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The migration is consistent, and checkouts remain where workspace source files are required.
Pull request overview
Migrates self-references to GitHub’s $/ syntax, avoiding unnecessary repository checkouts.
Changes:
- Updated local actions and reusable workflows to
$/references. - Removed redundant checkout steps.
- Suppressed unsupported actionlint diagnostics for the new syntax.
File summaries
| File | Description |
|---|---|
.github/workflows/test.yml |
Migrates test jobs and reusable workflows to self-references. |
.github/workflows/crap.yml |
Updates the CRAP action reference. |
.github/actionlint.yml |
Ignores actionlint’s unsupported reusable-workflow warning. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Two separate changes are bundled here: a ./ → $/ syntax swap, and the removal of five actions/checkout steps. The second is the behavioural one and is worth calling out in the commit message, since it is the actual payoff of $/ for actions.
The checkout removals look correct to me: test-rust, test-rust-cache-no-imageos, test-nss, test-nss-android and test-nss-i686 only run rustup/cargo --version or the NSS action with cache: false, and neither rust/action.yml nor nss/action.yml reads workspace files on those paths (rust-cache: false in all of them, so no Cargo.lock lookup). The jobs that keep the checkout are exactly the ones that need repo content — test-rust-cache* (root Cargo.lock for rust-cache, cargo build in test-crate), test-toolchains (working-directory: test-crate), test-nss-deps-only (asserts against this repo's own nss/ directory), and crap.yml (coverage of the caller's source). Two side effects worth being aware of:
- In
test-nss/test-nss-android/test-nss-i686, the NSS action'star xzf --strip-components=1now extracts into an empty workspace rather than merging NSS'snss/over this repo'snss/action directory. That's cleaner, but it does mean the "$NSS_DIRalready has content" situation is now only exercised by the deps-only job, whose assertion attest.yml:289-292is load-bearing on it retaining the checkout. - The reasoning behind which jobs still need a checkout is now implicit. Given how thoroughly commented the rest of this workflow is, a one-line comment on the remaining
actions/checkoutsteps would keep someone from "tidying up" the last ones.
Since uvx zizmor floats to latest, please confirm CI is green before merging — the reusable-workflow $/ form is new here, and unpinned-uses under --persona auditor may treat it differently from the action form that already exists on main.
No prior review comments on this PR.
No description provided.