Skip to content

Augment Agent Auth Error #26

@higgsboz-beam

Description

@higgsboz-beam

When using the default basic PR review template, the agent appears to be authenticated at the start, but later becomes unauthenticated

Output from workflow run:

[2025-12-11T16:24:46.935Z] [Augment Agent] 🔍 Validating inputs...
[2025-12-11T16:24:46.938Z] [Augment Agent] ⚙️ Setting up environment...
[2025-12-11T16:24:46.938Z] [Augment Agent] 🚀 Starting Augment Agent...
[2025-12-11T16:24:46.938Z] [Augment Agent] Preparing template | Data: {
  "templateDirectory": "/home/runner/work/_actions/augmentcode/review-pr/v0/templates",
  "templateName": "prompt.njk"
}
[2025-12-11T16:24:46.941Z] [Augment Agent] Starting template processing pipeline | Data: {
  "templateDirectory": "/home/runner/work/_actions/augmentcode/review-pr/v0/templates",
  "templateName": "prompt.njk"
}
[2025-12-11T16:24:47.844Z] [Augment Agent] Successfully fetched all PR files | Data: {
  "pullNumber": xxx,
  "totalFiles": 1,
  "totalPages": 1
}
[2025-12-11T16:24:48.056Z] [Augment Agent] PR data extraction completed | Data: {
  "pullNumber": xxx,
  "fileCount": 1,
  "diffFile": "/tmp/pr-xxx-diff.patch"
}
[2025-12-11T16:24:48.056Z] [Augment Agent] Template context built successfully | Data: {
  "hasPR": true,
  "hasCustom": true,
  "customKeys": []
}
Warning: [2025-12-11T16:24:48.068Z] [Augment Agent] Failed to read file via filter, returning original path | Data: {
  "filePath": "/tmp/pr-xxx-diff.patch"
}
[2025-12-11T16:24:48.078Z] [Augment Agent] Template rendered successfully | Data: {
  "templateName": "prompt.njk",
  "contentLength": 8988
}
[2025-12-11T16:24:48.079Z] [Augment Agent] Instruction file written | Data: {
  "filePath": "/tmp/generated-instruction.txt",
  "contentLength": 8988
}
[2025-12-11T16:24:48.079Z] [Augment Agent] Template processing pipeline completed | Data: {
  "instructionFile": "/tmp/generated-instruction.txt",
  "contentLength": 8988
}
[2025-12-11T16:24:48.080Z] [Augment Agent] Template processing completed | Data: {
  "instructionFile": "/tmp/generated-instruction.txt"
}
[2025-12-11T16:24:48.080Z] [Augment Agent] 📄 Using instruction file: /tmp/generated-instruction.txt
❌ No auth provided. Please log in with `auggie login` or set the AUGMENT_SESSION_AUTH environment variable.
Error: [2025-12-11T16:24:48.936Z] [Augment Agent] Command failed with exit code 1 | Data: {
  "error": "undefined"
}
Error: Command failed with exit code 1
Error: Process completed with exit code 1.

Workflow:

name: Augment PR Review

on:
  pull_request:
    types: [labeled]

permissions:
  contents: read
  pull-requests: write

jobs:
  review-pr:
    name: Augment PR Review
    runs-on:
      - ubuntu-latest
    if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.event.label.name == 'augment_review'
    steps:
      - name: Augment PR Review
        uses: augmentcode/review-pr@v0.2.0
        with:
          augment_session_auth: ${{ secrets.AUGMENT_SESSION_AUTH }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          pull_number: ${{ github.event.pull_request.number }}
          repo_name: ${{ github.repository }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions