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
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"plugins": [
{
"name": "genie",
"version": "5.260720.10",
"version": "5.260721.1",
"source": "./plugins/genie",
"description": "Human-AI partnership for Claude Code. Share a terminal, orchestrate workers, evolve together. Brainstorm ideas, wish them into plans, make with parallel agents, ship as one team. A coding genie that grows with your project."
}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,8 @@ jobs:
version: ${{ inputs.version }}
channel: ${{ inputs.channel }}
draft: false
# Without inherit, the called workflow's secrets context is empty and the
# manifests job sees RELEASE_MANIFESTS_TOKEN as unset even though the
# release-manifests environment holds it (proven on the v5.260720.10
# stable run). Local trusted workflow — inherit is safe.
secrets: inherit
3 changes: 3 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -430,3 +430,6 @@ jobs:
source_sha: ${{ needs.auto-version.outputs.source_sha }}
source_branch: ${{ needs.auto-version.outputs.source_branch }}
source_ci_run_id: ${{ needs.auto-version.outputs.source_ci_run_id }}
# Propagate secrets through the call chain so release-publish.yml's
# manifests job can read RELEASE_MANIFESTS_TOKEN (see release.yml publish).
secrets: inherit
Comment on lines +433 to +435

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the relevant workflow files around the cited lines.
sed -n '400,460p' .github/workflows/version.yml
printf '\n--- release.yml ---\n'
sed -n '150,230p' .github/workflows/release.yml

# Find reusable workflow inputs/secrets declarations and where the manifest token is used.
printf '\n--- search secrets / workflow_call ---\n'
rg -n "workflow_call|secrets: inherit|RELEASE_MANIFESTS_TOKEN|release-manifests|release-publish" .github/workflows

Repository: automagik-dev/genie

Length of output: 6937


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- release.yml workflow_call ---'
sed -n '1,90p' .github/workflows/release.yml

printf '\n%s\n' '--- release-publish.yml workflow_call and manifest job ---'
sed -n '1,320p' .github/workflows/release-publish.yml

Repository: automagik-dev/genie

Length of output: 18907


🌐 Web query:

GitHub Actions reusable workflow environment secret precedence caller secrets secrets inherit job environment reusable workflow

💡 Result:

In GitHub Actions, secrets are not automatically passed to reusable workflows; they must be explicitly provided by the caller [1][2]. When a reusable workflow is called, you can pass specific secrets or use the secrets: inherit keyword to pass all secrets available to the calling workflow to the called workflow [1][3]. Precedence and Environment Secrets: 1. Secret Precedence: Generally, if secrets with the same name exist at different levels, the secret at the most specific level takes precedence [4]. The order (from lowest to highest precedence) is organization-level, repository-level, and environment-level [4]. 2. Reusable Workflow Environment Secrets: A common pitfall exists when attempting to use environment-scoped secrets within a reusable workflow. While a reusable workflow job must define the environment attribute to access environment-level secrets, this alone is often insufficient [5][6]. Empirical evidence indicates that the caller must also provide the secrets via explicit mapping or by using secrets: inherit for those secrets to resolve within the called workflow [5][6]. Without secrets: inherit (or explicit passing), environment-level secrets may resolve to an empty string instead of the expected value [5][6]. 3. Inheritance Scope: The secrets: inherit keyword passes all secrets the calling workflow has access to, including organization, repository, and environment secrets [5][7]. If a reusable workflow defines its own environment context, that local environment configuration can interact with the inherited secrets [3]. Note that if a secret is defined in both the calling workflow's environment and the reusable workflow's environment, the latter may take precedence depending on the specific configuration and resolution path [3]. Key takeaway: To ensure environment-scoped secrets are available in a reusable workflow, it is recommended to both define the environment in the called job and use secrets: inherit (or explicit passing) in the caller [5][6].

Citations:


🌐 Web query:

GitHub Actions reusable workflow on.workflow_call.secrets explicit mapping environment secret reusable workflow inherit required

💡 Result:

In GitHub Actions, you can pass secrets to a reusable workflow using either explicit mapping or the inherit keyword [1][2]. Explicit Mapping To use explicit mapping, you must first define the required secrets in the reusable workflow under the on.workflow_call.secrets key [3][2]. You can specify whether each secret is required [2]. Reusable workflow configuration: on: workflow_call: secrets: MY_SECRET: required: true Calling workflow configuration: jobs: call-workflow: uses: owner/repo/.github/workflows/reusable.yml@main secrets: MY_SECRET: ${{ secrets.MY_SECRET }} If a caller workflow attempts to pass a secret that is not defined in the reusable workflow's on.workflow_call.secrets block, or if a required secret is missing, it will result in an error [2]. Inherit Keyword Alternatively, the inherit keyword allows a calling workflow to implicitly pass all of its available secrets to the reusable workflow [1][4]. This is often used for convenience but carries security implications as it follows a permissive approach by passing every available secret to the called workflow [5][6]. Calling workflow configuration: jobs: call-workflow: uses: owner/repo/.github/workflows/reusable.yml@main secrets: inherit Key Considerations 1. Security and Principle of Least Privilege: Using secrets: inherit is generally discouraged in environments where strict security controls are required, as it may expose more secrets than necessary [5][6]. Explicit mapping is the recommended approach to limit the attack surface by ensuring only required secrets are shared [6]. 2. Nested Workflows: Secrets are only passed to directly called workflows [1]. If you have a workflow chain (A > B > C), workflow B must explicitly pass secrets to workflow C, or pass them using inherit, even if B inherited them from A [1][2]. 3. Automatic Secrets: GITHUB_TOKEN is automatically provided to reusable workflows by GitHub Actions and does not need to be explicitly passed or inherited [7][5].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find secret references in the release workflow chain.
rg -n "secrets\.[A-Z0-9_]+|secrets:\s*inherit|workflow_call:\s*$|secrets:\s*$" \
  .github/workflows/version.yml \
  .github/workflows/release.yml \
  .github/workflows/release-publish.yml

printf '\n--- declared workflow_call secrets blocks ---\n'
sed -n '1,120p' .github/workflows/version.yml | sed -n '/workflow_call:/,/permissions:/p'
printf '\n--- release.yml ---\n'
sed -n '1,120p' .github/workflows/release.yml | sed -n '/workflow_call:/,/permissions:/p'
printf '\n--- release-publish.yml ---\n'
sed -n '1,120p' .github/workflows/release-publish.yml | sed -n '/workflow_call:/,/permissions:/p'

Repository: automagik-dev/genie

Length of output: 2046


Replace secrets: inherit with an explicit RELEASE_MANIFESTS_TOKEN mapping.

.github/workflows/version.yml and .github/workflows/release.yml only need to forward the manifest token; inheriting all caller secrets widens the blast radius for no benefit. Declare RELEASE_MANIFESTS_TOKEN on workflow_call and pass it explicitly at both call sites.

📍 Affects 2 files
  • .github/workflows/version.yml#L433-L435 (this comment)
  • .github/workflows/release.yml#L186-L190
🤖 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/version.yml around lines 433 - 435, Replace broad secrets
inheritance with an explicit RELEASE_MANIFESTS_TOKEN mapping: declare
RELEASE_MANIFESTS_TOKEN under workflow_call and pass it explicitly at the call
site in .github/workflows/version.yml lines 433-435 and
.github/workflows/release.yml lines 186-190, preserving manifest access without
forwarding unrelated secrets.

Source: MCP tools

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automagik/genie",
"version": "5.260720.10",
"version": "5.260721.1",
"description": "Collaborative terminal toolkit for human + AI workflows. NOTE: npm distribution discontinued 2026-05-09 — install via `curl -fsSL https://raw.githubusercontent.com/automagik-dev/genie/main/install.sh | bash` (cosign + SLSA verified). See https://automagik.dev/genie/release-process",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion plugins/genie/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genie",
"version": "5.260720.10",
"version": "5.260721.1",
"description": "Human-AI partnership for Claude Code. Share a terminal, orchestrate workers, evolve together. Brainstorm ideas, turn them into wishes, execute with /work, validate with /review, and ship as one team.",
"author": {
"name": "Namastex Labs"
Expand Down
2 changes: 1 addition & 1 deletion plugins/genie/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genie",
"version": "5.260720.10",
"version": "5.260721.1",
"description": "Plan, execute, review, and ship software with Genie workflows in Codex.",
"author": {
"name": "Namastex Labs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/genie/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genie-plugin",
"version": "5.260720.10",
"version": "5.260721.1",
"private": true,
"description": "Runtime dependencies for genie bundled CLIs",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion plugins/hermes-genie/plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: genie
version: 5.260720.10
version: 5.260721.1
description: "Native Hermes surface for Genie orchestration: read-only status plus work-plan and review-plan gap tools that the MCP board surface does not cover, hooks, commands, and a thin cockpit skill. Board/task truth comes from the genie MCP tools."
provides_tools:
# Default surface: exactly the three gap tools the MCP board surface does not cover.
Expand Down
Loading