Skip to content

Commit b516aa2

Browse files
committed
Refactor GitHub CLI token assignment for consistency across workflows
1 parent e518643 commit b516aa2

File tree

8 files changed

+14
-10
lines changed

8 files changed

+14
-10
lines changed

.github/workflows/copilot-pr-merged-report.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/dev.lock.yml

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/dev.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ description: Create a poem about GitHub and save it to repo-memory
66
timeout-minutes: 5
77
strict: false
88
engine: copilot
9+
910
permissions: read-all
11+
1012
tools:
1113
github: false
1214
edit:
@@ -17,7 +19,7 @@ safe-outputs:
1719
create-issue:
1820
staged: true
1921
steps:
20-
- name: download issues data
22+
- name: Download issues data
2123
run: |
2224
gh pr list --limit 1 --json number,title,body,author,createdAt,mergedAt,state,url
2325
env:

.github/workflows/shared/gh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ safe-inputs:
1616
run: |
1717
echo "gh $INPUT_ARGS"
1818
echo " token: ${GH_AW_GH_TOKEN:0:6}..."
19-
GH_TOKEN=$GH_AW_GH_TOKEN gh $INPUT_ARGS
19+
GH_TOKEN="$GH_AW_GH_TOKEN" gh $INPUT_ARGS
2020
---
2121

2222
**IMPORTANT**: Always use the `safeinputs-gh` tool for GitHub CLI commands instead of running `gh` directly via bash. The `safeinputs-gh` tool has proper authentication configured with `GITHUB_TOKEN`, while bash commands do not have GitHub CLI authentication by default.

.github/workflows/smoke-copilot-no-firewall.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-copilot-playwright.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-copilot-safe-inputs.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-copilot.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)