Verify config in CI
Goal: fail a pipeline when your committed ~/.agentsync/ config is invalid or
references a secret that doesn’t exist — before it ever reaches a real machine.
check validates the config and surfaces every unresolved ${secret:…} /
${env:…} reference.
agentsync checkIn CI without an age key
Section titled “In CI without an age key”CI runners usually don’t have your age identity, so secret resolution would
fail. Set AGENTSYNC_ALLOW_OFFLINE_VERIFY=1 to validate structure and reference
shape (a malformed ${secret:} still fails) while skipping resolution — it
does not check that a well-formed reference actually resolves, which needs a
run without the flag:
AGENTSYNC_ALLOW_OFFLINE_VERIFY=1 agentsync checkThis still catches schema errors and malformed references — it just doesn’t prove the vault contains each key.
A GitHub Actions example
Section titled “A GitHub Actions example”name: agentsync checkon: [push, pull_request]jobs: check: runs-on: ubuntu-latest env: AGENTSYNC_HOME: ${{ github.workspace }}/.agentsync AGENTSYNC_ALLOW_OFFLINE_VERIFY: "1" steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version-file: go.mod - run: go install github.com/spxrogers/agentsync/cmd/agentsync@latest - run: agentsync check