Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(triage): keep the GitHub token out of the untrusted shell (#41596)

Simon Knott8b507a2ac212
diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml
index 0436508a7c..08f8584c68 100644
--- a/.github/workflows/triage.yml
+++ b/.github/workflows/triage.yml
@@ -10,11 +10,6 @@ on:
description: "Issue number to triage"
required: true
-# One triage at a time across the whole repo; let an in-flight run finish.
-concurrency:
- group: triage
- cancel-in-progress: false
-
permissions: {}
jobs:
@@ -45,7 +40,7 @@ jobs:
- name: Triage issue with Copilot CLI
id: triage
env:
- GH_TOKEN: ${{ github.token }}
+ COPILOT_GITHUB_TOKEN: ${{ github.token }}
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
mkdir -p output
@@ -60,10 +55,11 @@ jobs:
--allow-all-tools \
--allow-all-paths \
--no-ask-user \
+ --enable-all-github-mcp-tools \
+ --share=output/copilot-session.md \
--model claude-opus-4.8 \
--max-ai-credits 500 \
- -p "$PROMPT" \
- 2>&1 | tee "output/copilot.log"
+ -p "$PROMPT"
if [ -s output/triage.md ]; then
echo "has_draft=true" >> "$GITHUB_OUTPUT"
@@ -71,15 +67,13 @@ jobs:
echo "has_draft=false" >> "$GITHUB_OUTPUT"
fi
- - name: Add log to job summary
+ - name: Add session transcript to job summary
if: always()
run: |
{
- echo "## Triage run log (issue $ISSUE)"
+ echo "## Triage session transcript (issue $ISSUE)"
echo ''
- echo '```'
- cat "output/copilot.log" 2>/dev/null || echo "(no log)"
- echo '```'
+ cat "output/copilot-session.md" 2>/dev/null || echo "(no transcript)"
} >> "$GITHUB_STEP_SUMMARY"
- name: Upload output
@@ -87,7 +81,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: triage-${{ github.event.issue.number || inputs.issue }}
- path: output/**
+ path: output/triage.md
if-no-files-found: warn
post: