Skip to content

ci: name and structure workflows by the org conventions - #73

Merged
jrandolf merged 4 commits into
mainfrom
ci/actions-conventions
Nov 20, 2026
Merged

jrandolf merged 4 commits into
mainfrom
ci/actions-conventions

Conversation

@jrandolf

@jrandolf jrandolf commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Why

One required check gates each pull request, and the workflows follow the organization naming conventions, so a job rename never touches the ruleset.

What

  • Merge hk.yml into ci.yml as the job check. The daily cargo-deny run moves to audit.yml.
  • Add the job required. It fails only when a job in ci.yml failed or was cancelled. A skipped job passes.
  • Rename dependabot-automerge.yml to dependabot-gate.yml. The gate waits for required, CodeQL and the Analyze checks, not for a list of job names. Its jq filter binds the runs before it tests total_count, so it works on jq 1.7.1 and 1.8.1.
  • Name every job and step. Job ids match job names: msrv is "Check MSRV", and proto-check is "Check protos".
  • Set permissions: {} at the top of every workflow, and concurrency at workflow level. Only a pull request cancels a run.
  • Keep release.yml and prebuilt.yml as file names.

After the merge, the ruleset requires: required, CodeQL, Analyze (actions), Analyze (rust), Dependabot gate.

Tests

  • jactionlint, zizmor, ghalint and hk check pass on the workflows.
  • required passes on this pull request.
  • The gate filter gives the same result on jq 1.7.1 and 1.8.1, for the real check runs of this head and for failed, pending, missing and over-one-page cases.

Comment thread .github/workflows/prebuilt.yml Fixed
Comment thread .github/workflows/prebuilt.yml Fixed
@jrandolf
jrandolf marked this pull request as ready for review November 20, 2026 16:59
@jrandolf
jrandolf merged commit 1970cab into main Nov 20, 2026
26 of 27 checks passed
@jrandolf
jrandolf deleted the ci/actions-conventions branch November 20, 2026 17:18
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