ci: fix CodeQL permissions for private repositories (#3606)
## Summary - Grant the CodeQL workflow `actions: read` alongside its existing `contents: read` and `security-events: write` permissions. - Allow the shared SDK workflow to read workflow-run metadata when it runs in the mirrored private repository. ## Why The public workflow currently succeeds because public Actions workflow-run metadata can be read without an explicit Actions permission. The identical workflow fails in the private mirror with `Resource not accessible by integration` while preparing to upload CodeQL results. ## Validation - Parsed the workflow as YAML and verified the complete least-privilege permission set. - Confirmed the PR changes only one line in `.github/workflows/codeql.yml`. - Verified the exact commit passed internal CodeQL: https://github.com/openai/openai-python-internal/actions/runs/31671272628
A
Alex Chang committed
5578d39b01332ff28ed79e8ab1d864f6fa547f48
Parent: a1eeab5
Committed by GitHub <noreply@github.com>
on 8/13/2026, 3:53:07 PM