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
Copy file name to clipboardExpand all lines: docs/src/content/docs/reference/safe-outputs.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -551,8 +551,29 @@ safe-outputs:
551
551
- github.com # Default GitHub domains are always included
552
552
- api.github.com # Additional trusted domains can be specified
553
553
- trusted-domain.com # URIs from unlisted domains are replaced with "(redacted)"
554
+
github-token: ${{ secrets.CUSTOM_PAT }} # Optional: custom GitHub token for safe output jobs
554
555
```
555
556
557
+
## Global Configuration Options
558
+
559
+
### Custom GitHub Token (`github-token:`)
560
+
561
+
By default, safe output jobs use the standard `GITHUB_TOKEN` provided by GitHub Actions. You can specify a custom GitHub token for all safe output jobs:
562
+
563
+
```yaml
564
+
safe-outputs:
565
+
create-issue:
566
+
add-issue-comment:
567
+
github-token: ${{ secrets.CUSTOM_PAT }} # Use custom PAT instead of GITHUB_TOKEN
568
+
```
569
+
570
+
This is useful when:
571
+
- You need additional permissions beyond what `GITHUB_TOKEN` provides
572
+
- You want to perform actions across multiple repositories
573
+
- You need to bypass GitHub Actions token restrictions
574
+
575
+
**Note:** The custom `github-token` is applied to all safe output jobs (create-issue, add-issue-comment, create-pull-request, etc.). Individual safe output types cannot have different tokens.
576
+
556
577
## Related Documentation
557
578
558
579
- [Frontmatter Options](frontmatter.md) - All configuration options for workflows
Copy file name to clipboardExpand all lines: pkg/cli/templates/instructions.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,17 @@ The YAML frontmatter supports these fields:
212
212
body: true # Optional: allow updating issue body
213
213
max: 3 # Optional: maximum number of issues to update (default: 1)
214
214
```
215
-
When using `safe-outputs.update-issue`, the main job does **not** need `issues: write` permission since issue updates are handled by a separate job with appropriate permissions.
215
+
When using `safe-outputs.update-issue`, the main job does **not** need `issues: write` permission since issue updates are handled by a separate job with appropriate permissions.
216
+
217
+
**Global Safe Output Configuration:**
218
+
- `github-token:`- Custom GitHub token for all safe output jobs
219
+
```yaml
220
+
safe-outputs:
221
+
create-issue:
222
+
add-issue-comment:
223
+
github-token: ${{ secrets.CUSTOM_PAT }} # Use custom PAT instead of GITHUB_TOKEN
224
+
```
225
+
Useful when you need additional permissions or want to perform actions across repositories.
216
226
217
227
- **`alias:`** - Alternative workflow name (string)
218
228
- **`cache:`** - Cache configuration for workflow dependencies (object or array)
0 commit comments