Skip to content

Add actions: read for the cache artifact download - #219

Merged
mmcky merged 1 commit into
mainfrom
add-actions-read-permission
Jul 8, 2026
Merged

mmcky merged 1 commit into
mainfrom
add-actions-read-permission

Conversation

@mmcky

@mmcky mmcky commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Ports the fix from QuantEcon/lecture-jax#331 (a Copilot-review catch) to keep the two repos' publish workflows in sync.

Why

The migration added an explicit permissions: block, which sets every unlisted scope to none. The publish job's dawidd6/action-download-artifact step reads the Jupyter build cache from cache.yml via the Actions API, which needs actions: read.

The last publish (publish-2026jul07) still succeeded with only Contents/Metadata/Pages granted — so this isn't currently breaking — but actions: read is the documented requirement for that action and is exactly what issue QuantEcon/meta#282's permissions example lists (actions: read # needed if other workflows download artifacts). Adding it guarantees the cache download and removes a latent gap.

Change

One line added to the permissions: block in .github/workflows/publish.yml:

actions: read     # dawidd6/action-download-artifact reads the cache.yml build artifact

🤖 Generated with Claude Code

The explicit permissions block set all unlisted scopes to none, so the
dawidd6/action-download-artifact step (which reads the build cache from
cache.yml via the Actions API) had no actions:read. The last publish still
succeeded, but the scope is the documented requirement and matches the
permissions example in QuantEcon/meta#282 — add it to guarantee the cache
download and keep this in sync with lecture-jax.

Ports the fix from QuantEcon/lecture-jax#331 (Copilot review follow-up).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 7, 2026 21:50
@netlify

netlify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploy Preview for adorable-cucurucho-69162b ready!

Name Link
🔨 Latest commit 27c6d82
🔍 Latest deploy log https://app.netlify.com/projects/adorable-cucurucho-69162b/deploys/6a4d748c53bdc00008db3ff3
😎 Deploy Preview https://deploy-preview-219--adorable-cucurucho-69162b.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploy Preview for sparkly-moxie-de1f0e ready!

Name Link
🔨 Latest commit 27c6d82
🔍 Latest deploy log https://app.netlify.com/projects/sparkly-moxie-de1f0e/deploys/6a4d748c9f596a00088572a8
😎 Deploy Preview https://deploy-preview-219--sparkly-moxie-de1f0e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the GitHub Pages publish workflow token permissions to include actions: read, aligning with the documented requirement for dawidd6/action-download-artifact when downloading artifacts from another workflow (cache.yml).

Changes:

  • Add actions: read to the permissions: block in .github/workflows/publish.yml to support downloading the build cache artifact via the Actions API.

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

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 7, 2026 21:56 Inactive
@mmcky
mmcky merged commit 8c7cadf into main Jul 8, 2026
11 checks passed
@mmcky
mmcky deleted the add-actions-read-permission branch July 8, 2026 00:44
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