Skip to content

Fix: add issues: write permission to unblock PR comment posting - #49

Merged
jchen0506 merged 3 commits into
mainfrom
copilot/fix-validate-and-render-job
Jul 28, 2026
Merged

Fix: add issues: write permission to unblock PR comment posting#49
jchen0506 merged 3 commits into
mainfrom
copilot/fix-validate-and-render-job

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The validate-and-render job was failing with HTTP 403 "Resource not accessible by integration" when attempting to post its summary comment. The Issues REST API endpoint used for PR comments (POST /issues/{number}/comments) requires issues: write, which was absent — only pull-requests: write was declared.

Change

  • .github/workflows/pr-check.yml: add issues: write to the permissions block
permissions:
  contents: read
  pull-requests: write  # needed to post/update the summary comment
  issues: write         # needed to create/update issue comments via the Issues API

The 403 response header x-accepted-github-permissions: issues=write; pull_requests=write confirmed the missing scope.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job validate-and-render Fix: add issues: write permission to unblock PR comment posting Jul 28, 2026
Copilot AI requested a review from jchen0506 July 28, 2026 15:48

@jchen0506 jchen0506 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions

Copy link
Copy Markdown

ACT-CMS Lesson Portal — PR check

Checks failed. Please fix the items below and push an update to this branch — the check re-runs automatically.

Errors (must fix)

Error: '.github/workflows/pr-check.yml' is a YAML file outside the lessons/ folder. Lesson submissions must live in lessons/<your-module>.yml.

See template.yaml for the full field reference. Common pitfalls: fields like platforms, authors, and scientific_objectives must be YAML lists (- item), and recommended_platform must be exactly one name that matches an entry in platforms.

@jchen0506
jchen0506 marked this pull request as ready for review July 28, 2026 16:01
@jchen0506
jchen0506 merged commit 0653611 into main Jul 28, 2026
1 check failed
@jchen0506
jchen0506 deleted the copilot/fix-validate-and-render-job branch July 28, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants