Skip to content

Make GITHUB_SIGNED_COMMITS settable from a repo/org variable, without pinning a harness commit SHA #8903

Closed as duplicate

Description

@gwenneg

What happened

We enabled GITHUB_SIGNED_COMMITS for the code and fix agents in RedHatInsights/notifications-backend (agents#1675, released in fullsend v0.51.0). Since the setting only exists in harness/code.yaml / harness/fix.yaml's env.runner block (hardcoded literal "false"), the only way to turn it on per-repo today is base: composition — a .fullsend/code-signed.yaml / fix-signed.yaml file that re-points base: at a specific fullsend-ai/agents commit SHA with a #sha256= content pin, referenced from config.yaml via source:.

This works, but has two concrete costs:

  1. The pin goes stale silently. No Renovate manager (built-in or MintMaker's shared config) understands a base: https://raw.githubusercontent.com/... string in a YAML field — it's not a uses: line, a Dockerfile FROM, or a manifest dependency. So unlike our uses: fullsend-ai/fullsend/...@<SHA> workflow pins, which Renovate's github-actions manager tracks and we auto-merge, this pin never gets a bump PR. This is literally how we ended up pinned to a pre-release test commit for weeks: RedHatInsights/notifications-backend#5080.
  2. The agent can't fix it either. Re-pinning requires editing a file and recomputing a sha256 by hand; there's no automation path for it today.

Proposed change (two repos)

1. fullsend-ai/agents — change the two hardcoded literals to interpolate from the ambient env, the same way GH_TOKEN/ISSUE_URL already do two lines above them in the same block:

# harness/code.yaml and harness/fix.yaml, github overlay, env.runner:
GITHUB_SIGNED_COMMITS: "${GITHUB_SIGNED_COMMITS}"

This works because env.runner values go through os.Expand(v, expander) once at harness-load time (internal/cli/run.go:1095-1103 in fullsend-ai/fullsend), which rewrites ${VAR}-shaped text from the ambient process environment. post-code.sh/post-fix.sh already guard with ${GITHUB_SIGNED_COMMITS:-false} (bash default), so when the ambient var is unset, an empty expansion is harmless — it falls through to the existing git-push path, same as today's default.

2. fullsend-ai/fullsend — add github_signed_commits (default 'false') as a reusable-dispatch.yml input, threaded into the "Setup agent environment" step's role-prefixed env var (CODE_GITHUB_SIGNED_COMMITS, FIX_GITHUB_SIGNED_COMMITS) the same way gcp_region/CODE_CLOUD_ML_REGION already is, and update the per-repo scaffold template (internal/scaffold/fullsend-repo/.github/workflows/fullsend.yaml) to pass github_signed_commits: ${{ vars.FULLSEND_GITHUB_SIGNED_COMMITS }}.

Together, this lets a repo flip signed commits on/off with a plain repository variable — no base:/source: composition, no commit SHA to track, nothing for Renovate to miss, and nothing an agent token would need workflows permission to touch.

Open question

This adds a setting to the config/env resolution surface that docs/contributing/config-source-inventory.md doesn't currently track at all. Per CONTRIBUTING.md's ADR norms, this might warrant a short ADR before implementation rather than going straight to a PR — happy to write one if a maintainer agrees this is the right shape.

Context

Activity

  1. changed the title [-]Expose GITHUB_SIGNED_COMMITS as a reusable-dispatch.yml input sourced from a repo/org variable[/-] [+]Make GITHUB_SIGNED_COMMITS settable from a repo/org variable, without pinning a harness commit SHA[/+] on Oct 29, 2026
  2. rh-hemartin commented on Oct 29, 2026

    @rh-hemartin
    Member

    Hello! This other issue should solve your pains: #8143, comment there if you are willing to contribute a PR for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions