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
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SECURITY: Actions are pinned to release tags, not commit SHAs, so whoever controls an
# action could move its tag and run new code in jobs that hold `id-token` or `contents`
# write permissions. This is accepted because each action comes from GitHub, the Rust
# project, or the maintainer of `dtolnay/rust-toolchain`, who already control the runner,
# the toolchain, or the publishing this workflow trusts; pin them to SHAs if that changes.
name: Publish to crates.io

on:
Expand All @@ -22,11 +27,12 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install Bake launcher
run: cargo install bake --locked
run: cargo install bake --version 0.20.1 --locked
- name: Detect an explicit release request
id: detect
env:
Expand Down Expand Up @@ -58,9 +64,10 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- name: Install Bake launcher
run: cargo install bake --locked
run: cargo install bake --version 0.20.1 --locked
- name: Find workspace packages that need publishing
id: packages
env:
Expand Down
89 changes: 53 additions & 36 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Run `cargo bake agent:context:install` to install dependency context and skills, and use `cargo bake agent:context:list` and `cargo bake agent:context:show` to discover guidance. Follow the Base conventions and relevant installed skills under `.agents/`.

Before planning or changing behavior, read applicable `design/*.md`, and assess changes against them before opening or updating a pull request. This crate's own skills are authored in `context/audit.md` and `context/advisory.md`. The installer excludes workspace members, so it does not install them into this checkout; edit the source skill documents, and use their installed names, `base-security-audit` and `base-security-advisory`, in consuming projects.
Before planning or changing behavior, read applicable `design/*.md`, and assess changes against them before opening or updating a pull request. This crate's own skills are authored in `context/audit.md` and `context/advisory.md`. The installed `base-security-audit` and `base-security-advisory` skills come from the published `base-security` release that `base-project` depends on, so they can lag behind `context/`. Edit the source skill documents, and use their installed names in consuming projects.

Use `base-security-audit` when reviewing code for security issues, and record each review in `security/audit-*.md`. Use `base-security-advisory` for vulnerability reports and for findings that may warrant an advisory. Before reporting a security finding, read the relevant `// SECURITY:` comments and `design/*.md`.

The private `bake/` package uses `base-project` for development and release tasks. Run `cargo bake --regenerate` after changing task dependencies. Use `cargo bake test` for the workspace tests and `cargo bake test:coverage --all-targets true` for the standard coverage check. The tests package the crate and verify that a consumer can discover and install both skills from the packaged contents.
2 changes: 1 addition & 1 deletion bake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish = false

[dependencies]
bake = ">=0.20, <1"
base-project = ">=0.1.3"
base-project = ">=0.1.7"

[dev-dependencies]
bake-agent-context = "0.4.0"
Expand Down
4 changes: 1 addition & 3 deletions bake/src/bake_generated_tasks/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Released under the MIT License.
// Copyright, 2026, by Samuel Williams.

// Generated by `cargo bake --regenerate`; do not edit.

use base_project as _;
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Add this instruction to the project's agent guidance:

## Releasing

Prepare a release with `cargo bake cargo:version:patch` (or `minor`, `major`, or `bump --version X.Y.Z`), commit it with a `Release: vVERSION` trailer, then run `cargo bake cargo:release` and open a pull request. After review and merge, GitHub Actions publishes the release when the configured `crates-io` environment approves it, then creates or updates the matching GitHub Release from `releases.md`. Follow the shared [Releasing skill](https://github.com/base-rs/base-project/blob/main/context/releasing.md) for the standard process.
Prepare a release with `cargo bake cargo:release:patch` (or `minor`, `major`, or `bump --version X.Y.Z`), which bumps the version, commits it with a `Release: vVERSION` trailer, validates it and opens the release pull request. After review and merge, GitHub Actions publishes the release when the configured `crates-io` environment approves it, then creates or updates the matching GitHub Release from `releases.md`. Follow the shared [Releasing skill](https://github.com/base-rs/base-project/blob/main/context/releasing.md) for the standard process.

## Releases

Expand Down
Loading