You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🔐 Validate PAT tokens and improve RunOptions (#16169)
* validate PAT tokens are fine grained and remove --use-local-secrets
* add RunOptions for simplicity
* fix up secret collection
* fix up secret collection
* fix up secret collection
* fix up secret collection
@@ -577,7 +587,6 @@ Use "` + string(constants.CLIExtensionPrefix) + ` help all" to show help for all
577
587
runCmd.Flags().StringP("repo", "r", "", "Target repository (owner/repo format). Defaults to current repository")
578
588
runCmd.Flags().String("ref", "", "Branch or tag name to run the workflow on (default: current branch)")
579
589
runCmd.Flags().Bool("auto-merge-prs", false, "Auto-merge any pull requests created during the workflow execution")
580
-
runCmd.Flags().Bool("use-local-secrets", false, "Use local environment API key secrets for workflow execution (pushes and cleans up secrets in repository)")
581
590
runCmd.Flags().StringArrayP("raw-field", "F", []string{}, "Add a string parameter in key=value format (can be used multiple times)")
582
591
runCmd.Flags().Bool("push", false, "Commit and push workflow files (including transitive imports) before running")
583
592
runCmd.Flags().Bool("dry-run", false, "Validate workflow without actually triggering execution on GitHub Actions")
Copy file name to clipboardExpand all lines: docs/src/content/docs/patterns/trialops.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -267,7 +267,7 @@ jobs:
267
267
|-------|----------|
268
268
| `workflow not found` | Use correct format: `owner/repo/workflow-name`, `owner/repo/.github/workflows/workflow.md`, or `./local-workflow.md` |
269
269
| `workflow_dispatch not supported` | Add `workflow_dispatch:` to workflow frontmatter `on:` section |
270
-
| `authentication failed` | Set API keys: `COPILOT_GITHUB_TOKEN`, `CLAUDE_CODE_OAUTH_TOKEN` or `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`. Use `--use-local-secrets` to push to trial repo |
270
+
| `authentication failed` | Set API keys: `COPILOT_GITHUB_TOKEN`, `CLAUDE_CODE_OAUTH_TOKEN` or `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`. Trial automatically prompts for missing secrets and uploads them to the trial repo |
271
271
| `failed to create trial repository` | Check `gh auth status`, verify quota with `gh api user \| jq .plan`, try explicit `--host-repo name` |
**Secret Handling:** API keys required for the selected engine are automatically checked. If missing from the target repository, they are prompted for interactively and uploaded.
243
244
244
245
#### `run`
245
246
@@ -249,12 +250,11 @@ Execute workflows immediately in GitHub Actions. Displays workflow URL for track
249
250
gh aw run workflow # Run workflow
250
251
gh aw run workflow1 workflow2 # Run multiple workflows
251
252
gh aw run workflow --repeat 3 # Repeat 3 times
252
-
gh aw run workflow --use-local-secrets # Use local API keys
253
253
gh aw run workflow --push # Auto-commit, push, and dispatch workflow
254
254
gh aw run workflow --push --ref main # Push to specific branch
255
255
```
256
256
257
-
**Options:** `--repeat`, `--use-local-secrets`, `--push` (see [--push flag](#the---push-flag)), `--ref`
257
+
**Options:** `--repeat`, `--push` (see [--push flag](#the---push-flag)), `--ref`, `--auto-merge-prs`, `--enable-if-needed`
258
258
259
259
When `--push` is used, automatically recompiles outdated `.lock.yml` files, stages all transitive imports, and triggers workflow run after successful push. Without `--push`, warnings are displayed for missing or outdated lock files.
fmt.Fprintln(os.Stderr, console.FormatWarningMessage(fmt.Sprintf("COPILOT_GITHUB_TOKEN in environment is not a fine-grained PAT: %s", stringutil.GetPATTypeDescription(existingToken))))
0 commit comments