radius-project / radius-project/samples

Scheduled sample test failures cannot create GitHub issues

Open
#2,662 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug triaged
Dominant language
TypeScript
Stars
36
Forks
37
Avg merge
2d 23h
Merged PRs (30d)
12

Description

Bug information

Steps to reproduce (required)

Run the scheduled .github/workflows/test.yaml workflow with a sample failure. Its Create GitHub issue on failure step runs gh issue create using GH_TOKEN: ${{ github.token }}.

Representative failure: https://github.com/radius-project/samples/actions/runs/34119803387 on v0.60.

Observed behavior (required)

The reporting step fails with:

GraphQL: Resource not accessible by integration (createIssue)

The workflow declares permissions: {} globally and the test job grants only contents: read; the reporting step attempts to create an issue without a declared issues: write permission. Investigate effective token permissions and repository policy to confirm the complete cause.

Desired behavior (required)

Scheduled sample-test failures automatically create a GitHub issue with the expected sample-specific title, workflow-run link, and test-failure label.

Provide narrowly scoped issue-write access to scheduled failure reporting without unnecessarily broadening privileges for pull-request test jobs. Verify the reporting path with a controlled failure and assess which maintained branches share the defect.

Workaround (optional)

Inspect failed workflow runs and file failures manually.

System information

rad Version (required)

Radius v0.60.2 was reported in the September 7 volumes job. This failure concerns the workflow's GitHub token permissions rather than Radius initialization.

Operating system (required)

GitHub Actions ubuntu-24.04 runner.

Additional context

Follow-up to #2661, which addresses the separate v0.60 default-environment initialization failure. Keep the permission fix independent so deployment recovery is not blocked by reporting changes. The PR release-version selection correction is included in the #2661 implementation plan and does not need a separate issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with .github/workflows/test.yaml and inspect the scheduled test job's “Create GitHub issue on failure” step, its GH_TOKEN, and effective permissions. Compare scheduled and pull-request jobs, then use a controlled sample failure to verify that the expected title, workflow-run link, and test-failure label are created. Check which maintained branches share the workflow defect.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.