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
18 changes: 0 additions & 18 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,3 @@ jobs:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

release:
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- uses: MarcoIeni/release-plz-action@d22c02a7cf6d7870bd163be7c7d9518d331aef34 # v0.5
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ jobs:
actions: write # gh workflow run
steps:
- name: Dispatch ppa-publish workflow
if: secrets.PPA_GPG_KEY != ''

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major

The secrets context is still invalid in this if expression.

Moving the condition to the step does not make secrets.PPA_GPG_KEY available to if. Expose the secret through env first, then check env.PPA_GPG_KEY:

Proposed fix
   trigger-ppa-publish:
     name: Trigger PPA publish
     needs: release
     runs-on: ubuntu-latest
+    env:
+      PPA_GPG_KEY: ${{ secrets.PPA_GPG_KEY }}
     permissions:
       actions: write
     steps:
       - name: Dispatch ppa-publish workflow
-        if: secrets.PPA_GPG_KEY != ''
+        if: env.PPA_GPG_KEY != ''

[actionlint] reports this same context-availability problem, so the workflow remains invalid.

🧰 Tools
🪛 actionlint (1.7.12)

[error] 271-271: context "secrets" is not allowed here. available contexts are "env", "github", "inputs", "job", "matrix", "needs", "runner", "steps", "strategy", "vars". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details

(expression)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml at line 271, Update the step condition in the
release workflow to expose PPA_GPG_KEY through the step’s env configuration,
then test env.PPA_GPG_KEY in the if expression instead of referencing the
secrets context directly.

Source: Linters/SAST tools

env:
GH_TOKEN: ${{ github.token }}
run: |
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

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

15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ resolver = "2"

[package]
name = "agentflare"
version = "1.3.0"
version = "1.2.0"
edition = "2024"
rust-version = "1.91"
description = "Optimize AI CLI agents for cost and performance."
license = "MIT"
repository = "https://github.com/getappz/agentflare"
publish = false

[package.metadata.binstall]
bin-dir = "agentflare{ binary-ext }"
Expand Down Expand Up @@ -57,14 +58,14 @@ rpassword = "7"
thiserror = "2"
eyre = "0.6"
color-eyre = "0.6"
ponytail = { path = "crates/ponytail", version = "0.1.1" }
agent-registry = { package = "agentflare-agent-registry", path = "crates/agent-registry", version = "0.1.1" }
skill-registry = { package = "agentflare-skill-registry", path = "crates/skill-registry", version = "0.1.2" }
gateway-registry = { package = "agentflare-gateway-registry", path = "crates/gateway-registry", version = "0.1.1" }
caveman = { package = "agentflare-caveman", path = "crates/caveman", version = "0.1.1" }
ponytail = { path = "crates/ponytail" }
agent-registry = { package = "agentflare-agent-registry", path = "crates/agent-registry" }
skill-registry = { package = "agentflare-skill-registry", path = "crates/skill-registry" }
gateway-registry = { package = "agentflare-gateway-registry", path = "crates/gateway-registry" }
caveman = { package = "agentflare-caveman", path = "crates/caveman" }
regex = "1"
sysinfo = { version = "0.34", optional = true, default-features = false, features = ["system"] }
agentflare-artifacts = { version = "0.1.1", path = "crates/agentflare-artifacts" }
agentflare-artifacts = { path = "crates/agentflare-artifacts" }
agent-detector = "0.2.1"

[features]
Expand Down
3 changes: 2 additions & 1 deletion crates/agent-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[package]
name = "agentflare-agent-registry"
version = "0.1.1"
version = "0.1.0"
edition = "2024"
rust-version = "1.91"
description = "AI agent definitions and detection for agentflare"
license = "MIT"
publish = false

[dependencies]
clap = { version = "4", features = ["derive"] }
Expand Down
3 changes: 2 additions & 1 deletion crates/agentflare-artifacts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[package]
name = "agentflare-artifacts"
version = "0.1.1"
version = "0.1.0"
edition = "2021"
description = "Live shareable artifact pages from AI agent sessions"
license = "MIT"
publish = false

[dependencies]
similar = "2"
Expand Down
3 changes: 2 additions & 1 deletion crates/caveman/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[package]
name = "agentflare-caveman"
version = "0.1.1"
version = "0.1.0"
edition = "2024"
rust-version = "1.91"
description = "Caveman markdown compressor — LLM-based prose compression with structural validation"
license = "MIT"
publish = false

[dependencies]
regex = "1"
Expand Down
3 changes: 2 additions & 1 deletion crates/gateway-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "agentflare-gateway-registry"
version = "0.1.1"
version = "0.1.0"
edition = "2024"
rust-version = "1.91"
description = "Gateway registry — intent-first discovery and execution across MCP servers"
license = "MIT"
repository = "https://github.com/getappz/agentflare"
publish = false

[dependencies]
rusqlite = { version = "0.40", features = ["bundled"] }
Expand Down
3 changes: 2 additions & 1 deletion crates/ponytail/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[package]
name = "ponytail"
version = "0.1.1"
version = "0.1.0"
edition = "2024"
rust-version = "1.91"
description = "Ponytail — lazy senior dev mode for AI agents"
license = "MIT"
publish = false

[dependencies]
serde = { version = "1", features = ["derive"] }
Expand Down
5 changes: 3 additions & 2 deletions crates/skill-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[package]
name = "agentflare-skill-registry"
version = "0.1.2"
version = "0.1.1"
edition = "2024"
rust-version = "1.91"
license = "MIT"
description = "Local SKILL.md registry: scan, BM25 search (SQLite FTS5), shadow-aware load."
publish = false

[dependencies]
rusqlite = { version = "0.40", features = ["bundled"] }
Expand All @@ -13,7 +14,7 @@ serde_yaml = "0.9" # frontmatter only; deprecated upstream but stable — repl
regex = "1"
thiserror = "2"
dirs = "6"
agent-registry = { package = "agentflare-agent-registry", path = "../agent-registry", version = "0.1.1" }
agent-registry = { package = "agentflare-agent-registry", path = "../agent-registry" }

[dev-dependencies]
tempfile = "3"
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tasks.release]
description = "Trigger release-plz to create version-bump PR, then tag + publish"
description = "Trigger release-plz to create version-bump PR"
run = "gh workflow run release-plz.yml"

[tasks."release:watch"]
Expand Down
Loading