Skip to content

fix(ci): bump nanvix/workflows to v2.0.1 and grant packages: read#160

Merged
ppenna merged 1 commit into
nanvix/v2025.09.13from
fix/grant-packages-read-permission
May 14, 2026
Merged

fix(ci): bump nanvix/workflows to v2.0.1 and grant packages: read#160
ppenna merged 1 commit into
nanvix/v2025.09.13from
fix/grant-packages-read-permission

Conversation

@ada-x64
Copy link
Copy Markdown

@ada-x64 ada-x64 commented May 13, 2026

Stacks two commits, intended to supersede the open automation/update-nanvix-workflows PR:

  1. [ci] E: Update nanvix workflow refs to v2.0.1 — identical to the automation commit.
  2. fix(ci): grant packages: read for v2.0.1 reusable workflow — the missing permission grant.

Why both in one PR

The bump alone fails immediately with startup_failure (zero jobs) because nanvix/workflows v2.0.1 added packages: read to its top-level reusable-workflow permissions (commit 48eeaf7), and GitHub Actions enforces that a reusable workflow's effective permissions cannot exceed the caller job's. Our caller's explicit permissions: block omits packages, so it implicitly defaults to none.

This PR cannot be split: applying just the permission grant on default would un-block the automation PR, but pushing to the automation/** branch is blocked by repository ruleset (only the automation token bypasses).

Cleanups included

Drops the redundant job-level permissions: block on ci-scheduled — it duplicated the workflow-level block exactly and added nothing besides maintenance burden.

After merge

  • Close the open automation/update-nanvix-workflows PR (will become a no-op).
  • Future scheduled Update Workflow Refs runs will see default already at @v2.0.1 and report already up to date.

Copilot AI review requested due to automatic review settings May 13, 2026 21:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the repository’s Nanvix CI GitHub Actions workflow to use nanvix/workflows v2.0.1 and aligns caller permissions with the reusable workflow’s newly required packages: read permission, preventing the workflow startup failure.

Changes:

  • Bump nanvix/workflows/.github/workflows/nanvix-ci.yml from v2.0.0 to v2.0.1 for both scheduled and non-scheduled runs.
  • Add workflow-level permissions: packages: read to satisfy the reusable workflow’s top-level permissions.
  • Remove redundant job-level permissions from ci-scheduled (now covered by workflow-level permissions).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

nanvix/workflows v2.0.1 added 'packages: read' to its top-level
permissions block (commit 48eeaf7) so the reusable workflow can
authenticate to ghcr.io for the docker pull retry loop.

GitHub Actions enforces that a reusable workflow's effective
permissions must be <= the caller job's. Our caller's explicit
permissions block omits 'packages', so that scope implicitly
defaults to 'none', causing every PR run to fail with
startup_failure (zero jobs) the moment the bump moves the ref
to @v2.0.1.

Also drop the redundant job-level permissions block on
ci-scheduled — it duplicated the workflow-level block exactly
and added nothing besides maintenance burden.
@ppenna ppenna force-pushed the fix/grant-packages-read-permission branch from e3c99af to be2006f Compare May 14, 2026 01:03
@ppenna ppenna merged commit 56face5 into nanvix/v2025.09.13 May 14, 2026
16 checks passed
@ppenna ppenna deleted the fix/grant-packages-read-permission branch May 14, 2026 01:08
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.

3 participants