pipeline for Affinidi rust projects
- add file to
.github/workflows/checks.yaml
name: checks
on:
pull_request_target:
types:
- opened
- synchronize
jobs:
rust-pipeline:
uses: affinidi/pipeline-rust/.github/workflows/checks.yaml@main
secrets: inherit
with:
auditIgnore: "RUSTSEC-2022-0040,RUSTSEC-2023-0071,RUSTSEC-2024-0373"- add file to
.github/workflows/release.yaml
name: "release"
on:
push:
branches:
- main
jobs:
rust-pipeline:
uses: affinidi/pipeline-rust/.github/workflows/release.yaml@main
secrets: inherit
with:
auditIgnore: "RUSTSEC-2022-0040,RUSTSEC-2023-0071,RUSTSEC-2024-0373"The release pipeline uses crates.io Trusted Publishing — no CARGO_REGISTRY_TOKEN secret needed once configured.
Run once per repository or when adding new crate (requires a crates.io API token):
git clone https://github.com/affinidi/pipeline-rust
cd pipeline-rust
# or
curl https://raw.githubusercontent.com/affinidi/pipeline-rust/refs/main/scripts/setup-trusted-publishing.sh | bash
./scripts/setup-trusted-publishing.sh ~/path/to-repo-rs/ --dry-runUse --dry-run to preview without making changes.