ci: adopt org workflow & supply-chain standards - #27
Merged
Conversation
electricapp
force-pushed
the
ci/workflow-standards
branch
from
June 24, 2026 13:56
135c3cd to
39be6c1
Compare
electricapp
force-pushed
the
ci/workflow-standards
branch
from
June 24, 2026 14:36
142d051 to
87b04f6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings power-monitor into line with the electricapp workflow standard
(
electricapp/ccaudit:.github/WORKFLOW_STANDARDS.md, §13 power-monitor row).All changes are additive/surgical — the existing fmt/build/msrv jobs and their
macOS IOReport-gated logic are preserved verbatim.
Hardening (ci.yml)
permissions: {}(deny-all); every job re-grantscontents: read(audit also gets
checks: writefor rustsec/audit-check).persist-credentials: falseon every checkout.timeout-minutesadded to every job (fmt 10, build/msrv 30, lint lanes 5–10).Supply chain
deny.toml(license allowlist,bansmultiple-versions=warn /wildcards=deny, crates.io-only sources,
advisories yanked=deny) — copiedfrom the ccaudit template with the ccaudit-specific exceptions stripped.
deny(cargo-deny-action) +audit(rustsec/audit-check) jobs in ci.yml..github/workflows/supply-chain.yml: scheduled (Mon 07:17 UTC) +workflow_dispatchre-audit of the committed lockfile,RUST_TOOLCHAIN=1.96.0to match the declared MSRV.
CI coverage
typos(crate-ci/typos) andunused-deps(cargo-machete viataiki-e/install-action) jobs.
actionlintjob (SHA-pinned v1.7.12 download + sha256 verify, then./actionlint).Pinning
# tagcomments).@e97e2d8c… # v1(withtoolchain:inputs) andSwatinem
@c19371144… # v2.9.1pins — both already match / are accepted bythe standard.
Governance
.github/settings.json+.github/apply-settings.sh(slugelectricapp/power-monitor, branchmain,environments: []— repo ships noartifacts today). Required-check contexts:
rustfmt,clippy + test + doc,msrv (1.96),cargo-deny,cargo-audit,typos,cargo-machete,actionlint.Follow-ups (post-merge, manual)
.github/apply-settings.shonce an admin merges, to reconcile branchprotection / merge policy / security settings (it asserts no drift).
standard's grouping is optional and not in the power-monitor checklist row).