Skip to content

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

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 90c20ed 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
Contributor

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: 3ec62dd2-7eb1-4858-9e61-8392ac91a8bf

📥 Commits

Reviewing files that changed from the base of the PR and between d20da11 and fb213fe.

📒 Files selected for processing (1)
  • .github/workflows/scorecard.yml
 ____________________________________________
< Let's git serious about your code quality. >
 --------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ

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