Skip to content

fix(ci): give callers the union of the reusable's declared permissions - #80

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/caller-permissions-union
Sep 21, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
fix/caller-permissions-union

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Job-level permissions: replace the workflow-level block, so a job block that lists only some keys silently drops the rest and GitHub refuses the call (The workflow is requesting 'id-token: write'/'contents: read', but is only allowed '<none>').

This sets each calling job's block to the union of the workflow-level grants and the callee's declared permissions (max level per key), validated by re-parsing the file before commit.

@hyperpolymath
hyperpolymath merged commit 9bd7640 into main Sep 21, 2026
@hyperpolymath
hyperpolymath deleted the fix/caller-permissions-union branch September 21, 2026 08:07
@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 8ec52376-5fb8-4947-aca6-1bec891066a1

📥 Commits

Reviewing files that changed from the base of the PR and between 5364cbe and 3c7f54e.

📒 Files selected for processing (1)
  • .github/workflows/governance.yml
 ____________________________________
< No tests? Bold. Approval? Also no. >
 ------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant