Skip to content

Commit 122bba8

Browse files
committed
ci(code-formatting-check): grant actions:write on taplo-fmt for cache
Per Copilot review on microsoft#657: `taiki-e/cache-cargo-install-action` writes to the GitHub Actions cache. With the workflow's default permissions pinned to `contents: read`, that step would fail without an `actions: write` scope on the `taplo-fmt` job. Adds a per-job permissions block so the cache save/restore continues to work after the workflow-level restriction. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent deba40f commit 122bba8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/code-formatting-check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
taplo-fmt:
3737
name: .toml Formatting Check
3838
runs-on: windows-2025
39+
permissions:
40+
contents: read
41+
actions: write # taiki-e/cache-cargo-install-action writes to GitHub Actions cache
3942

4043
steps:
4144
- name: Checkout Repository

0 commit comments

Comments
 (0)