























@@ -37,19 +37,20 @@ jobs:
3737private-key: ${{ secrets.CLAWSWEEPER_APP_PRIVATE_KEY }}
3838owner: openclaw
3939repositories: clawsweeper
40+permission-contents: write
40414142 - name: Dispatch exact ClawSweeper review
4243if: ${{ github.event_name != 'push' }}
4344env:
44-GH_TOKEN: ${{ steps.token.outputs.token || secrets.OPENCLAW_GH_TOKEN }}
45+GH_TOKEN: ${{ steps.token.outputs.token }}
4546TARGET_REPO: ${{ github.repository }}
4647ITEM_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
4748ITEM_KIND: ${{ github.event_name == 'pull_request_target' && 'pull_request' || 'issue' }}
4849SOURCE_EVENT: ${{ github.event_name }}
4950SOURCE_ACTION: ${{ github.event.action }}
5051run: |
5152 if [ -z "$GH_TOKEN" ]; then
52- echo "::notice::Skipping ClawSweeper dispatch because no dispatch credential is configured."
53+ echo "::notice::Skipping ClawSweeper dispatch because no ClawSweeper app token is configured. Not falling back to a maintainer token."
5354 exit 0
5455 fi
5556 payload="$(jq -nc \
@@ -71,15 +72,15 @@ jobs:
7172 - name: Dispatch ClawSweeper commit review
7273if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.event.deleted != true }}
7374env:
74-GH_TOKEN: ${{ steps.token.outputs.token || secrets.OPENCLAW_GH_TOKEN }}
75+GH_TOKEN: ${{ steps.token.outputs.token }}
7576TARGET_REPO: ${{ github.repository }}
7677BEFORE_SHA: ${{ github.event.before }}
7778AFTER_SHA: ${{ github.sha }}
7879SOURCE_REF: ${{ github.ref }}
7980CREATE_CHECKS: ${{ vars.CLAWSWEEPER_COMMIT_REVIEW_CREATE_CHECKS || 'false' }}
8081run: |
8182 if [ -z "$GH_TOKEN" ]; then
82- echo "::notice::Skipping ClawSweeper commit dispatch because no dispatch credential is configured."
83+ echo "::notice::Skipping ClawSweeper commit dispatch because no ClawSweeper app token is configured. Not falling back to a maintainer token."
8384 exit 0
8485 fi
8586 case "$CREATE_CHECKS" in
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。