docs guides Vouching for contributors
06-vouching-for-contributors.md GuidesNov 24, 2026

Vouching for contributors

A public repository takes lane stacks from anyone signed in. To take them only from people a maintainer vouched for, keep a trust list and turn the gate on. The list is a VOUCHED.td file in Vouch's format, so the same file works with Vouch's CLI and its GitHub Actions.

The trust list#

# Vouched contributors for this project.
mitchellh
github:alice
gitstack:bob
-github:spammer Submitted endless amounts of AI slop
  • One person per line. A leading - denounces them; anything after the first space is the reason, and it is public.
  • github:alice (or a bare alice, which Vouch reads as GitHub's) is the GitStack account whose linked GitHub login is alice.
  • gitstack:bob is the account with handle bob on gitstack.sh. A self-hosted server goes by its own host instead: git.acme.com:bob.
  • Names are compared lowercased. An account is checked under each of its names; a denounce under any of them wins.

GitStack reads VOUCHED.td, then .github/VOUCHED.td, from the default branch. A file over 1 MiB is treated as unreadable.

Turn it on#

In the repository's settings, under Vouch, pick what needs a vouch and where people ask, then Propose change. The review it opens is yours, with automerge on. It adds the [vouch] table to .gitstack/policy.toml and, in the same change, vouches for everyone with an open lane stack or a landed lane review, so nobody already at work is shut out. Uncheck anyone you don't want to vouch for. A change to policy.toml needs a repository owner's LGTM, so another owner approves it, or you land it yourself as an owner. Until it lands, the section shows the review turning vouch on.

Or write the table yourself:

toml
[vouch]
require = ["lanes"]             # [] refuses only denounced accounts
file = ".github/VOUCHED.td"     # unset: VOUCHED.td, then .github/VOUCHED.td
request = "#1"                  # where unvouched people ask: an issue or an https URL
denounce_from = ["acme/shared-trust"]

require left out means ["lanes"], so people without a vouch can still file issues, which is one way to ask for one. "issues" gates filing GitStack's own issues; GitStack has none yet, so today it gates nothing. Without a [vouch] table nothing is gated.

What it gates#

People with write, and GitStack itself, are never asked.

Unvouched Denounced
Push a lane stack, or change one refused when require has "lanes" (the default) refused
Comment, reply or LGTM, on a review or an issue allowed: that is how they ask refused
Lanes that already exist stay stay, and can still land
Push a lane stack, or change one
Unvouched
refused when require has "lanes" (the default)
Denounced
refused
Comment, reply or LGTM, on a review or an issue
Unvouched
allowed: that is how they ask
Denounced
refused
Lanes that already exist
Unvouched
stay
Denounced
stay, and can still land

A refused push names the entry that would let them in:

remote: error: vouch_required: acme/widget takes lane stacks only from vouched contributors.
remote: A maintainer can add github:alice to .github/VOUCHED.td. Ask at https://gitstack.sh/acme/widget/issues/1

The API answers 403 with the same code (vouch_required, vouch_denounced) and message. A list or policy that can't be read refuses too (vouch_unavailable): the gate stays closed until it can. On the web, a denounced person sees it under the review's title before they type, and the comment box and LGTM are not offered.

Denounce and block are separate. A denounce is an entry in a list other projects can read; a block also hides the person's comments and drops their lanes.

Vouch and denounce#

Only writers vouch or denounce. Each one is a review that edits the list, authored by you, so the repository's approval rules apply to it. Automerge is on (from the command line, unless you turn it off): with no LGTM required, the vouch lands at once. Your later edits go into the same review until it lands.

  • On a lane review, writers see a strip under the title with the author's standing and Vouch; its menu holds Denounce and Remove. The reason opens in the strip. While a vouch review waits, the strip links it. Someone denounced through denounce_from is not offered Vouch, since a vouch here cannot lift it; the strip names the repository instead.
  • In settings, under Vouch: one line taking a handle or platform:name, a reason and Vouch or Denounce; the open vouch reviews; and every entry, with Remove. Denounces imported through denounce_from are listed with the repository they come from.
  • From the command line, with no clone:
bash
gs vouch add alice -m "fixed the parser"   # a handle, written as their entry
gs vouch denounce github:spammer -m "AI slop"
gs vouch remove alice
gs vouch check alice                       # exit 0 vouched, 1 denounced, 2 unknown
gs vouch list

Each takes --repo <ns>/<name>, and the write verbs take --no-automerge. In a clone, Vouch's own vouch add alice --write followed by gs commit --review works too; GitStack writes the file the way Vouch does.

To have an owner approve every vouch, add a path rule:

toml
[[approvals.rules]]
paths = [".github/VOUCHED.td"]
min_lgtms = 0
owner_lgtm = true

In a lane, the list is owner-controlled whatever the rules say, wherever file puts it, so nobody vouches for themselves through a lane stack.

Share denounces#

denounce_from lists other public repositories on the same server whose denounces apply here. Their vouches never do. A listed repository that is missing, private or unreadable is skipped, and the settings page says so. A refusal from an imported entry names where it came from ("denounced in acme/shared-trust").

Pull requests on the GitHub mirror#

GitStack does not gate pull requests opened on the mirror. The mirror carries the same file, so run Vouch's own check there:

yaml
# .github/workflows/vouch.yml
on:
  pull_request_target:
    types: [opened, reopened]

permissions:
  contents: read
  pull-requests: write

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: mitchellh/vouch/action/check-pr@v1
        with:
          pr-number: ${{ github.event.pull_request.number }}
          auto-close: true
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Its vouched-file input defaults to .github/VOUCHED.td; set it if your list lives elsewhere.