Skip to content
Closed
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: 15 additions & 0 deletions docs/src/content/docs/guides/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,21 @@ Review changes with `git diff .github/workflows/` to verify that deprecated fiel

Typical migrations include `sandbox: false` → `sandbox.agent: false`, `daily at` → `daily around`, and removal of deprecated `network.firewall` and `safe-inputs.mode` fields. Use `git diff --word-diff` for detailed comparison.

> [!NOTE]
> **Manual migration required: `checkout.github-token` → `checkout.token`**
>
> If your workflow uses `checkout.github-token:` in the frontmatter, rename the field to `checkout.token:`. This aligns the user-facing field name with the `token` input of `actions/checkout` and is not applied automatically by `gh aw fix`.
>
> ```yaml
> # Before (no longer valid)
> checkout:
> github-token: ${{ secrets.MY_TOKEN }}
>
> # After
> checkout:
> token: ${{ secrets.MY_TOKEN }}
> ```

## Step 5: Verify Compilation

The upgrade automatically compiles workflows. To validate specific workflows, run `gh aw compile my-workflow --validate`. Common issues include invalid YAML syntax, deprecated fields (fix with `gh aw fix --write`), or incorrect schedule format. See the [schedule syntax reference](/gh-aw/reference/schedule-syntax/) for details.
Expand Down