Skip to content

affinidi/pipeline-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipeline-rust

pipeline for Affinidi rust projects

How to use

  1. 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"
  1. 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"

Publishing new crate

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-run

Use --dry-run to preview without making changes.

About

pipleline for rust projects

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Contributors

Languages