> ## Documentation Index
> Fetch the complete documentation index at: https://docs.garnet.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use evidence in GitHub Agentic Workflows

> Inspect the dependency review workflow and its historical comment and label.

> [!NOTE]
>
> **Research preview:** GitHub Agentic Workflows are under internal testing. The recorded run used an older MCP format. A fresh run with the HTTP configuration below has not been verified.

The [reference workflow](https://github.com/garnet-labs/ghaw-garnet-reference/blob/main/.github/workflows/dependency-runtime-review.md) uses Garnet records to post a dependency review comment and label for a human to act on.

1. In a separate public sandbox, follow the [reference repo's setup](https://github.com/garnet-labs/ghaw-garnet-reference#dependency-runtime-review-gh-aw-v10-ga-no-tokens) and [record ordinary CI with OIDC](https://docs.garnet.ai/quickstart.md). Use `gh aw` v1, enable Copilot CLI organization billing, and retain the reference engine (`copilot`), model (`gpt-4.1`) and `copilot-requests: write` permission.

2. Copy `.github/workflows/dependency-runtime-review.md`. Keep `api.garnet.ai` in the network allowlist. The current reference uses HTTP with only the `profiles` tool:

   ```yaml theme={null}
   mcp-servers:
     garnet:
       type: http
       url: https://api.garnet.ai/api/v2/mcp
       allowed: [profiles]
   ```

3. Before compiling, update the copied workflow prompt. The reference polls the App comment up to 12 times, a known difference from the [consumer policy](https://docs.garnet.ai/consume.md#read-the-result). Remove the wait loop: read the App comment once, and report evidence unavailable if it is not finalized for the current head. Use a job profile only if its `id` exactly matches the selector in that comment's job link and its `data.scenarios.github.head_sha` equals the current GitHub PR head. If either value is missing or mismatched, report job detail unavailable and use only the scoped App record. Verify both changes in a fresh run before treating this preview as ready.

4. Run `gh aw compile dependency-runtime-review` and commit the source and generated `.github/workflows/dependency-runtime-review.lock.yml`. Create the labels `runtime-changed`, `runtime-nothing-new` and `runtime-capture-incomplete`. Once the base records, open a manifest or lockfile PR.

5. Look for a safe-output comment and one label. Verify the App result separately. Leave package attribution unknown if the record does not establish it.

[Run 42900627394](https://github.com/garnet-labs/ghaw-garnet-reference/actions/runs/42900627394) succeeded. Its [safe-output comment](https://github.com/garnet-labs/ghaw-garnet-reference/pull/26#issuecomment-6779209041) reported a recorded connection to `storage.googleapis[.]com`, left the package unknown and applied `runtime-changed`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.