glab govern audit sync

Sync agent session data to GitLab. (EXPERIMENTAL)

Synopsis

Read new entries from the local agent transcript since the last sync and POST them to GitLab as audit events.

Called by the Stop hook after every agent turn. Also used by the SessionEnd hook (with –complete) to mark the session as complete.

Project is resolved from:

  1. –project flag (requires –hostname)
  2. Git remote of the current directory

This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/.

glab govern audit sync [flags]

Examples

# Sync the current agent session to GitLab
$ glab govern audit sync

# Sync and mark the session as completed
$ glab govern audit sync --complete

# Sync against a specific project
$ glab govern audit sync --project my-group/my-project --hostname gitlab.com

Options

      --complete          Mark the session as completed. Used by the SessionEnd hook.
  -H, --hostname string   GitLab hostname (required with --project).
  -p, --project string    Project ID or path to sync against.
      --silent            Suppress all output. Used when invoked from hooks.

Options inherited from parent commands

  -h, --help   Show help for this command.