Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ workflows:
- 'step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a'
'.github/workflows/repo-integrity-guard.yml':
- 'actions/checkout@v7.0.1'
'.github/workflows/rust-proven.yml': []
'.github/workflows/rust.yml':
- 'actions/checkout@v7.0.1'
'.github/workflows/scorecard.yml': []
Expand Down
98 changes: 98 additions & 0 deletions .github/workflows/rust-proven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# SPDX-License-Identifier: MPL-2.0
# This workflow is managed by gh actions-lock.
name: Rust (proven)

# Proven reusable Rust gate (hyperpolymath/proven-cicd-and-workflows
# rust-ci.yml), one caller per crate. It is stricter than the `rust` matrix in
# rust.yml: warnings denied on every compile, doctests, `cargo doc` with broken
# links failing, MSRV when declared, and cargo-deny (advisories, bans,
# sources). Contexts are `rust-ci (<crate>) / <gate job>`; branch rules require
# `rust-ci (<crate>) / Rust CI verdict` directly.
#
# This file holds only job-level reusable calls, like secret-scanner.yml and
# scorecard.yml: a workflow mixing native step pins with a job-level remote
# reusable fails Scorecard's native action-lock reconciliation.
#
# The `rust` matrix in rust.yml stays until branch rules require these contexts
# instead of `build · test · clippy (<crate>)`; a follow-up then removes it (and
# moves rhodibot's canon pin drift step to its own job).
#
# Pinned at one full SHA and de-onboarded from actions.lock (an onboarded
# cross-repo reusable startup-fails with zero jobs); the pin is recorded in
# scripts/lib/pinned-reusable-sources.json and lock-closure-receipts.tsv.
# `contents: read` is the whole grant the callee declares; no secrets.

on:
push:
branches: [main]
pull_request:
branches: ['**']
# Manual run: a startup_failure cannot be re-run, and settings fixes
# (for example the Actions allowlist) need a fresh run to be witnessed.
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
rust-ci-robot-repo-automaton:
name: rust-ci (robot-repo-automaton)
permissions:
contents: read
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/rust-ci.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459
with:
working_directory: robot-repo-automaton

rust-ci-shared-context:
name: rust-ci (shared-context)
permissions:
contents: read
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/rust-ci.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459
with:
working_directory: shared-context

rust-ci-dashboard:
name: rust-ci (dashboard)
permissions:
contents: read
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/rust-ci.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459
with:
working_directory: dashboard
# Binary-only crate: `cargo test --doc` has no library to test.
doctests: false

rust-ci-rhodibot:
name: rust-ci (rhodibot)
permissions:
contents: read
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/rust-ci.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459
with:
working_directory: bots/rhodibot

rust-ci-panicbot:
name: rust-ci (panicbot)
permissions:
contents: read
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/rust-ci.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459
with:
working_directory: bots/panicbot
Comment thread
hyperpolymath marked this conversation as resolved.
Resolved

rust-ci-ponsbot:
name: rust-ci (ponsbot)
permissions:
contents: read
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/rust-ci.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459
with:
working_directory: bots/ponsbot

rust-ci-idris-dependents:
name: rust-ci (idris-dependents)
permissions:
contents: read
uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/rust-ci.yml@50a443f01b1b85e4957b893a6f1a0ed2e8a52459
with:
working_directory: idris-dependents
5 changes: 4 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions: {}
needs: [rust, dispatch-contracts, gsbot]
needs:
- rust
- dispatch-contracts
- gsbot
if: always()
steps:
- name: Require every CI job to succeed
Expand Down
22 changes: 11 additions & 11 deletions bots/panicbot/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bots/panicbot/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub enum Command {
#[arg(default_value = ".")]
dir: PathBuf,

/// Output file path. Default: <repo>/.panicbot/PANICBOT-FINDINGS.a2ml.
/// Output file path. Default: `<repo>/.panicbot/PANICBOT-FINDINGS.a2ml`.
#[arg(short, long)]
output: Option<PathBuf>,
},
Expand Down
2 changes: 1 addition & 1 deletion bots/panicbot/src/translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ fn map_severity(panic_attack_severity: &str) -> Severity {
}
}

/// Parse a panic-attack location string ("src/lib.rs:42") into (PathBuf, Option<usize>).
/// Parse a panic-attack location string ("src/lib.rs:42") into `(PathBuf, Option<usize>)`.
fn parse_location(location: &str) -> (PathBuf, Option<usize>) {
// Format: "path/to/file.rs:line" or just "path/to/file.rs"
if let Some(colon_pos) = location.rfind(':') {
Expand Down
46 changes: 23 additions & 23 deletions bots/rhodibot/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bots/rhodibot/src/canon/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl CanonReport {
)
}

/// Check one repository against the canon, as overlaid by [`overlay`].
/// Check one repository against the canon, as overlaid by [`overlay`](super::overlay).
///
/// The profile comes from the chora deed's `(rsr-profile ...)` clause; a
/// legacy `rsr-profile.a2ml` is read only when the deed has none. No
Expand Down
Loading
Loading