Skip to content

Allow release workflow to dispatch artifact builds - #149

Merged
shps951023 merged 1 commit into
mainfrom
fix/release-workflow-dispatch-permission
Sep 7, 2026
Merged

shps951023 merged 1 commit into
mainfrom
fix/release-workflow-dispatch-permission

Conversation

@shps951023

Copy link
Copy Markdown
Member

Summary

  • grant the release workflow actions: write permission
  • allow its authenticated gh workflow run commands to dispatch CLI AOT, GUI AOT, and NuGet workflows

Evidence

The v0.42.0 release run completed build, tests, citation update, and GitHub Release creation, then failed in Start release artifact workflows with HTTP 403 Resource not accessible by integration.

Failed run: https://github.com/mini-software/MiniPdf/actions/runs/34086598272

The v0.42.0 downstream workflows were manually dispatched to complete the release.

Copilot AI lite review requested due to automatic review settings September 7, 2026 05:32
@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: bfc08864-4fb5-4509-a4a5-843ee059cf91

📥 Commits

Reviewing files that changed from the base of the PR and between b9f6351 and 8f26209.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is minimal, correctly scoped to the documented failure mode (workflow dispatch requiring actions: write), and aligns with the workflow’s existing use of gh for release automation.

Pull request overview

Enables the release.yml workflow to programmatically dispatch downstream artifact-build workflows (CLI AOT, GUI AOT, and NuGet publish) using gh workflow run, addressing the prior 403 “Resource not accessible by integration” failure during releases.

Changes:

  • Grant the release workflow actions: write permission so GH_TOKEN: ${{ github.token }} can dispatch other workflows via gh workflow run.
File summaries
File Description
.github/workflows/release.yml Adds permissions: actions: write so the release workflow can trigger downstream artifact workflows via GitHub CLI.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@shps951023
shps951023 merged commit 4a96556 into main Sep 7, 2026
4 checks passed
@shps951023
shps951023 deleted the fix/release-workflow-dispatch-permission branch September 16, 2026 08:18
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