Post issue-bot results as a PR comment#5715
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| if: github.event_name == 'pull_request' | ||
| runs-on: "ubuntu-latest" | ||
| permissions: | ||
| pull-requests: write |
| permissions: | ||
| pull-requests: write | ||
|
|
||
| steps: |
| permissions: | ||
| pull-requests: write | ||
|
|
||
| steps: |
|
|
||
| cat tmp/step-summary.md >> "$GITHUB_STEP_SUMMARY" | ||
|
|
||
| job_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" |
|
|
||
| cat tmp/step-summary.md >> "$GITHUB_STEP_SUMMARY" | ||
|
|
||
| job_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" |
|
|
||
| cat tmp/step-summary.md >> "$GITHUB_STEP_SUMMARY" | ||
|
|
||
| job_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" |
| if: github.event_name == 'pull_request' && needs.evaluate.result == 'success' | ||
| runs-on: "ubuntu-latest" | ||
| permissions: | ||
| pull-requests: write |
|
|
||
| steps: | ||
| - name: Harden the runner (Audit all outbound calls) | ||
| uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 |
|
|
||
| steps: | ||
| - name: Harden the runner (Audit all outbound calls) | ||
| uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 |
05de41f to
12a0fac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<!-- phpstan-issue-bot -->marker.$GITHUB_STEP_SUMMARY).GITHUB_TOKEN(noPHPSTAN_BOT_TOKENneeded).pull-requests: writeis granted only to the two new comment-posting jobs (pr-comment-init,pr-comment-finalize) — the workflow default iscontents: read. The push-mode flow (commenting on GitHub issues after merge to2.2.x) is untouched.Test plan
pr-comment-initupdates the existing comment to "run in progress" within ~10s; final state is replaced when the new run finishes (either the new report, or a "no changes" notice).::notice ::annotation still appears for change-detected PRs.2.2.xcontinue to post per-issue comments viaPHPSTAN_BOT_TOKEN(push pathway is byte-identical aside from the new top-levelpermissions:default).🤖 Generated with Claude Code