Skip to content

Commit 4ea524b

Browse files
Codestzclaude
andcommitted
fix: correct image optimization workflow permissions and token input
- Change `githubToken` to `GITHUB_TOKEN` (correct input name) - Add `contents: write` and `pull-requests: write` permissions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8dd698c commit 4ea524b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/optimize-images.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- '**.webp'
99
- '**.avif'
1010

11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
1115
jobs:
1216
build:
1317
name: Compress Images
@@ -18,7 +22,7 @@ jobs:
1822
- name: Compress Images
1923
uses: calibreapp/image-actions@main
2024
with:
21-
githubToken: ${{ secrets.GITHUB_TOKEN }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2226
jpegQuality: '80'
2327
pngQuality: '80'
2428
webpQuality: '80'

0 commit comments

Comments
 (0)