Skip to content

ci: grant actions:write so bun cache save succeeds - #75

Merged
jnasbyupgrade merged 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-actions-cache-perm
Jul 29, 2026
Merged

ci: grant actions:write so bun cache save succeeds#75
jnasbyupgrade merged 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-actions-cache-perm

Conversation

@jnasbyupgrade

Copy link
Copy Markdown
Contributor

Summary

  • claude.yml and claude-code-review.yml both run anthropics/claude-code-action, which internally uses oven-sh/setup-bun with caching enabled.
  • Cache writes require GITHUB_TOKEN to have actions: write; with only actions: read (or none), every run logs a harmless but noisy warning: Cache reservation failed: cache write denied: token has no writable scopes.
  • This grants actions: write in both workflows' job permissions: blocks.

Security note

actions: write is coarse-grained — besides cache read/write it also allows cancelling/re-running workflow runs and deleting artifacts/logs, but grants no additional contents/PR/secrets access. For claude-code-review.yml (a pull_request_target workflow already gated to the trusted jnasbyupgrade fork owner), this is a modest increase to the existing prompt-injection blast radius described in that file's comments — it does not enable code execution or repo writes beyond what the workflow already has.

Test plan

  • Next CI run of Claude Code / Claude Code Review no longer shows the cache warning.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 0ef5f544-2516-417e-8256-656f32877258

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@jnasbyupgrade
jnasbyupgrade marked this pull request as ready for review July 29, 2026 19:37
Both claude.yml and claude-code-review.yml run claude-code-action,
which internally uses oven-sh/setup-bun with caching enabled. Cache
writes require the GITHUB_TOKEN to have actions:write; with only
actions:read (or none), the cache save step logs a harmless but noisy
"Cache reservation failed: cache write denied: token has no writable
scopes" warning on every run.
@jnasbyupgrade
jnasbyupgrade force-pushed the fix-actions-cache-perm branch from 84b5cca to a99712c Compare July 29, 2026 19:40
@jnasbyupgrade
jnasbyupgrade merged commit 6d7822c into Postgres-Extensions:master Jul 29, 2026
4 checks passed
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