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
1 change: 1 addition & 0 deletions .github/aw/create-agentic-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ The main agent job must stay read-only.

- Do not grant `issues: write`, `pull-requests: write`, or `contents: write` to the agent job.
- Route GitHub writes through `safe-outputs:`.
- When targeting the Copilot coding agent, recommend `permissions: { copilot-requests: write }` so Copilot can authenticate with `${{ github.token }}`.
Comment thread
pelikhan marked this conversation as resolved.
- If the user asks for direct writes, explain why the safe-output pattern is required.

### 4. Select tools
Expand Down
6 changes: 3 additions & 3 deletions .github/aw/syntax-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ The YAML frontmatter supports these fields:
- When `"full"`, checks both the frontmatter hash and body hash; use when prompt-body edits should also trigger recompilation detection

- **`permissions:`** - GitHub token permissions
- Object with permission levels: `read`, `none`
- Available permissions: `contents`, `issues`, `pull-requests`, `discussions`, `actions`, `checks`, `statuses`, `models`, `deployments`, `security-events`
- Object with permission levels: `read`, `none` (and limited `write` for specific scopes)
- Available permissions: `contents`, `issues`, `pull-requests`, `discussions`, `actions`, `checks`, `statuses`, `models`, `deployments`, `security-events`, `copilot-requests`
- Write permissions are not allowed for security reasons; use `safe-outputs` for write operations instead
- Exception: `id-token: write` is allowed to enable OIDC token minting for external authentication, but use with caution and follow security best practices
- Exceptions: `id-token: write` is allowed to enable OIDC token minting; `copilot-requests: write` is recommended when targeting the Copilot coding agent so it can authenticate with `${{ github.token }}`
Comment thread
pelikhan marked this conversation as resolved.
- **`runs-on:`** - Runner type for the main agent job (string, array, or object)
- **`runs-on-slim:`** - Runner type for all framework/generated jobs (activation, safe-outputs, unlock, etc.). Defaults to `ubuntu-slim`. `safe-outputs.runs-on` takes precedence for safe-output jobs specifically.
- **`timeout-minutes:`** - Agent execution step timeout in minutes (integer or GitHub Actions expression, defaults to 20 minutes; custom and safe-output jobs use the GitHub Actions platform default of 360 minutes unless explicitly set). Expressions are useful in compiled workflows that define `workflow_call` inputs, for example `timeout-minutes: ${{ inputs.timeout }}`. This setting applies to the workflow being compiled, not to plain GitHub Actions caller jobs that use job-level `uses:` (GitHub does not allow `timeout-minutes` on those caller jobs).
Expand Down
1 change: 1 addition & 0 deletions .github/aw/update-agentic-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Use [workflow-editing.md](workflow-editing.md) as the source of truth.
- preserve existing style and structure unless reorganization is required
- do not rewrite unrelated frontmatter sections
- keep the agent job read-only
- when targeting the Copilot coding agent, recommend `permissions: { copilot-requests: write }` for Copilot authentication
Comment thread
pelikhan marked this conversation as resolved.
- use `safe-outputs:` for writes
- prefer `toolsets:` for GitHub tools

Expand Down
Loading