cognee/.github
Pavel Zorin df0c0b3f7f
Chore: fix Commutity Greetings workflow permissions (#1227)
<!-- .github/pull_request_template.md -->

## Description
Fix “Resource not accessible by integration” error in greetings workflow

This PR updates the community | Greetings GitHub Actions workflow to
ensure it can successfully post greeting comments on newly opened issues
and pull requests — including PRs from forks — without hitting the
“Resource not accessible by integration” error.

## Changes
- Switched PR trigger from `pull_request` to `pull_request_target` to
run in the context of the base repository and grant write-scoped
`GITHUB_TOKEN` for commenting on forked PRs.
- Added explicit `permissions` block with:
  - `issues: write`  
  - `pull-requests: write`  
- Limited triggers to `types: [opened]` for both issues and PRs to avoid
unnecessary runs.
- Preserved existing greeting messages for issues and pull requests.

## Reason for change
The workflow was failing because the default `GITHUB_TOKEN` in
`pull_request` events is read-only for forks, preventing the bot from
posting comments.
`pull_request_target` with explicit permissions solves this while
maintaining security.

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
2025-08-10 07:27:02 +02:00
..
actions feat: Cog 2340 remove graphistry (#1080) 2025-07-21 15:06:23 -04:00
workflows Chore: fix Commutity Greetings workflow permissions (#1227) 2025-08-10 07:27:02 +02:00
pull_request_template.md fix: add pipeline_name to PipelineRun and change logging default to ERROR (#675) 2025-03-29 14:55:34 +01:00
README_WORKFLOW_MIGRATION.md feat: New tests (#678) 2025-04-10 10:52:48 +02:00