Repository navigation
π± ci: stop persisting checkout credentials in PR-tree workflows #17327
Workflow file for this run
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
| name: Greetings | ||
|
Check warning on line 1 in .github/workflows/greetings.yml
|
||
| on: | ||
| # pull_request_target, not pull_request: on a fork PR the pull_request | ||
| # token is read-only whatever `permissions:` says, so the welcome comment | ||
| # 403s ("Resource not accessible by integration") on exactly the PRs it is | ||
| # for. The greet job only calls the comment API and never checks out or | ||
| # runs PR code, so the write-scoped target token is safe here. | ||
| pull_request_target: | ||
| types: [opened, reopened] | ||
| issues: | ||
| types: [opened, reopened] | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| pull-requests: write | ||
| jobs: | ||
| greet: | ||
| uses: hivecommons/infra/.github/workflows/reusable-greetings.yml@f1c0b61675386f54e63c04cf07b3aa933cc963eb # hivecommons/infra main as of 2026-09-02 | ||