Skip to content

chore: use GitHub's self-repository syntax - #147

Merged
larseggert merged 1 commit into
mainfrom
chore-github-selfref
Sep 18, 2026
Merged

larseggert merged 1 commit into
mainfrom
chore-github-selfref

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI balanced review requested due to automatic review settings September 18, 2026 09:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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's tar xzf --strip-components=1 now extracts into an empty workspace rather than merging NSS's nss/ over this repo's nss/ action directory. That's cleaner, but it does mean the "$NSS_DIR already has content" situation is now only exercised by the deps-only job, whose assertion at test.yml:289-292 is 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/checkout steps 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.

Comment thread .github/workflows/test.yml Resolved
Comment thread .github/actionlint.yml Resolved
@larseggert
larseggert merged commit 889b405 into main Sep 18, 2026
63 checks passed
@larseggert
larseggert deleted the chore-github-selfref branch September 18, 2026 09:14
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.

2 participants