Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,20 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}
# NOTE: Do not pass `token:` here. actions/checkout uses the workflow's
# auto-provided GITHUB_TOKEN by default, which is always valid for this
# repository. Passing a stale/invalid PAT_TOKEN secret causes:
# fatal: could not read Username for 'https://github.com'
# Using `secrets.PAT_TOKEN || secrets.GITHUB_TOKEN` does NOT help when
# PAT_TOKEN is set but expired β€” only when it's empty.

- name: Run Strands Agent
uses: ./
env:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
# PAT_TOKEN is used by the agent itself (e.g., for cross-repo API
# calls). Fallback to GITHUB_TOKEN so the action still works when
# no PAT is configured.
PAT_TOKEN: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
MODEL_PROVIDER: "bedrock"
with:
task: |
Expand Down Expand Up @@ -160,4 +167,4 @@ jobs:
echo ""
echo "This incident has been logged."
echo "Contact repository administrators for access."
exit 1
exit 1
3 changes: 3 additions & 0 deletions devduck/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from .dialog import dialog
from .sqlite_memory import sqlite_memory
from .scheduler import scheduler
from .neuralset import neuralset
from .dialog import dialog
from .manage_messages import manage_messages
from .manage_tools import manage_tools
Expand Down Expand Up @@ -83,6 +84,7 @@
"rich_interface",
"editor",
"use_flipper",
"neuralset",
]
except ImportError:
__all__ = [
Expand Down Expand Up @@ -122,4 +124,5 @@
"rich_interface",
"editor",
"use_flipper",
"neuralset",
]
Loading