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: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ version section and adds the squash-merged PR titles since the previous tag. Ver

## [Unreleased]

## [0.1.0-rc.3] - 2026-11-09

- fix(generate): MCP endpoints emit `mcp.allow_all_known_mcp_methods` instead of an access preset
- fix(generate): emit `operation_type` only on GraphQL rules, and only as query, mutation, or subscription
- fix(generate): reject `rest`, `websocket`, and `graphql` directives that set neither rules nor an access preset
- fix(lint): check `lint --policy`, `drift`, and generated policies with the OpenShell gateway validator

Merged pull requests since v0.1.0-rc.2:

- feat(actions): shared GitHub Actions for CI/CD (setup, drift, lint, generate, diff-logs, check) (#62)
- fix(lint): check policies with the OpenShell gateway validator (#59)
- fix(generate): reject L7 protocols that name neither rules nor access (#58)
- fix(generate): emit GraphQL operation_type only for GraphQL rules (#60)
- fix(generate): emit MCP allow-all instead of an access preset (#56)
- docs: add examples/README.md for the polyglot example (#51)

## [0.1.0-rc.2] - 2026-11-04

Merged pull requests since v0.1.0-rc.1:
Expand Down
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "openshell-annotate"
version = "0.1.0-rc.2"
version = "0.1.0-rc.3"
edition = "2021"
rust-version = "1.94"
description = "Policy-as-code for OpenShell: scan @openshell source directives and generate/validate policy.yaml"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Downstream repositories can run drift, lint, generate, and diff-logs in CI with
[docs/GITHUB_ACTIONS.md](docs/GITHUB_ACTIONS.md) for inputs, outputs, and copy-paste workflows.

```yaml
- uses: ilanh/openshell-annotate/actions/check@v0.1.0-rc.2
- uses: ilanh/openshell-annotate/actions/check@v0.1.0-rc.3
with:
policy: openshell/policy.yaml
providers: openshell/providers.json
Expand Down
2 changes: 1 addition & 1 deletion actions/check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
version:
description: Release tag for setup (`latest`, a tag, or `source` to build this repository).
required: false
default: v0.1.0-rc.2
default: v0.1.0-rc.3
root:
description: Repository root for drift and lint.
required: false
Expand Down
4 changes: 2 additions & 2 deletions actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ branding:
inputs:
version:
description: >
Release tag to install (e.g. v0.1.0-rc.2), `latest`, or `source` to build from the checked-out
Release tag to install (e.g. v0.1.0-rc.3), `latest`, or `source` to build from the checked-out
repository with cargo (Rust 1.94+ required; for this repo's CI only).
required: false
default: v0.1.0-rc.2
default: v0.1.0-rc.3
install-dir:
description: Directory for the openshell-annotate binary (added to PATH).
required: false
Expand Down
20 changes: 10 additions & 10 deletions docs/GITHUB_ACTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ and `macos-*` runners (linux/darwin, x86_64 and arm64).
Pin the **same ref** for every action in a workflow, for example a release tag:

```yaml
uses: ilanh/openshell-annotate/actions/check@v0.1.0-rc.2
uses: ilanh/openshell-annotate/actions/check@v0.1.0-rc.3
```

Tags track [releases](https://github.com/ilanh/openshell-annotate/releases). You may also pin a commit SHA for
maximum stability. The `setup` action’s `version` input is the **CLI** version (defaults to `v0.1.0-rc.2`; `latest` is
maximum stability. The `setup` action’s `version` input is the **CLI** version (defaults to `v0.1.0-rc.3`; `latest` is
supported). That is independent of the `@ref` on `uses:` — keep the action ref on a tag/SHA you trust.

Do not rely on `@main` in production workflows; it moves with every merge.
Expand All @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4.2.2
- uses: ilanh/openshell-annotate/actions/check@v0.1.0-rc.2
- uses: ilanh/openshell-annotate/actions/check@v0.1.0-rc.3
with:
root: .
policy: openshell/policy.yaml
Expand All @@ -52,7 +52,7 @@ jobs:

| Input | Default | Description |
| --- | --- | --- |
| `version` | `v0.1.0-rc.2` | Release tag, `latest`, or `source` (build with cargo; needs checkout + Rust 1.94) |
| `version` | `v0.1.0-rc.3` | Release tag, `latest`, or `source` (build with cargo; needs checkout + Rust 1.94) |
| `install-dir` | `$RUNNER_TOOL_CACHE/openshell-annotate` | Install location |
| `verify-attestation` | `false` | `gh attestation verify` (needs GitHub CLI) |
| `cache` | `true` | Cache the binary between runs |
Expand Down Expand Up @@ -119,8 +119,8 @@ Combines `setup`, `drift`, and `lint`. Inputs: `version`, `root`, `policy`, `pro
## CD: regenerate policy in CI

```yaml
- uses: ilanh/openshell-annotate/actions/setup@v0.1.0-rc.2
- uses: ilanh/openshell-annotate/actions/generate@v0.1.0-rc.2
- uses: ilanh/openshell-annotate/actions/setup@v0.1.0-rc.3
- uses: ilanh/openshell-annotate/actions/generate@v0.1.0-rc.3
id: policy
with:
policy-out: openshell/policy.yaml
Expand All @@ -139,7 +139,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4.2.2
- uses: ilanh/openshell-annotate/actions/check@v0.1.0-rc.2
- uses: ilanh/openshell-annotate/actions/check@v0.1.0-rc.3
with:
root: .
policy: openshell/policy.yaml
Expand All @@ -150,12 +150,12 @@ jobs:
Split steps (same pins):

```yaml
- uses: ilanh/openshell-annotate/actions/setup@v0.1.0-rc.2
- uses: ilanh/openshell-annotate/actions/drift@v0.1.0-rc.2
- uses: ilanh/openshell-annotate/actions/setup@v0.1.0-rc.3
- uses: ilanh/openshell-annotate/actions/drift@v0.1.0-rc.3
with:
policy: openshell/policy.yaml
providers: openshell/providers.json
- uses: ilanh/openshell-annotate/actions/lint@v0.1.0-rc.2
- uses: ilanh/openshell-annotate/actions/lint@v0.1.0-rc.3
with:
policy: openshell/policy.yaml
failure-threshold: warning
Expand Down
Loading