File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ name: Link AZIP to Discussion
1717# parse it strictly.
1818# * `discussions-to` values are validated against a strict regex before
1919# any API call is made.
20+ # * Authenticates as `DISCUSSION_WRITE_TOKEN` (a fine-grained PAT scoped to
21+ # this repo with `discussions: write`) rather than `GITHUB_TOKEN`, because
22+ # org policy caps `GITHUB_TOKEN` to read-only and overrides the workflow
23+ # `permissions:` block. The PAT must be a *fine-grained* token limited to
24+ # this repository — do not use a classic PAT.
2025
2126on :
2227 pull_request_target :
3237
3338permissions :
3439 contents : read
35- pull-requests : read
36- discussions : write
3740
3841concurrency :
3942 group : link-azip-${{ github.event.pull_request.number || inputs.pr_number }}
4346 link :
4447 runs-on : ubuntu-latest
4548 env :
46- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+ GH_TOKEN : ${{ secrets.DISCUSSION_WRITE_TOKEN }}
4750 REPO : ${{ github.repository }}
4851 PR_NUMBER : ${{ github.event.pull_request.number || inputs.pr_number }}
4952 steps :
You can’t perform that action at this time.
0 commit comments