Skip to content

fix(release): let the daily release read the release PR's checks - #155

Merged
djessyczaplicki-genomcore merged 1 commit into
release/2026-11-19from
fix/release-read-checks
Nov 19, 2026
Merged

djessyczaplicki-genomcore merged 1 commit into
release/2026-11-19from
fix/release-read-checks

Conversation

@IreneGonPa

Copy link
Copy Markdown
Contributor

Summary

Same fix as Genomcore/inspire-factory#217, for INSPIRE's copy of the Daily release workflow.

The release job's token had only contents and pull-requests. gh pr checks reads the PR's check runs, statuses and each check suite's workflow run through GraphQL, which needs checks, statuses and actions read access. In the Factory today it failed with Resource not accessible by integration, its error was discarded (2>/dev/null || true), and the scheduled run refused a release PR whose Release check was green. INSPIRE's run today read the checks fine and published v0.20.0, but it relies on the same discarded error.

  • the release job gets checks: read, statuses: read and actions: read;
  • when the checks cannot be read, the step fails with gh's own error instead of reading an empty list.

Verified in the Factory with a dry_run on the fixed workflow against its release PR: "Lista para publicar".

It goes through the release branch, not a hotfix: nothing is broken in INSPIRE today. It reaches main with the next release, and the cron uses it from the day after.

🤖 Generated with Claude Code

The release job's token lacked checks, statuses and actions read
access, which gh pr checks needs; its error was discarded and a green
Release check could read as missing. Same fix as inspire-factory#217.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@djessyczaplicki-genomcore
djessyczaplicki-genomcore merged commit 070dbc0 into release/2026-11-19 Nov 19, 2026
6 checks passed
@djessyczaplicki-genomcore
djessyczaplicki-genomcore deleted the fix/release-read-checks branch November 19, 2026 09:17
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