Skip to content

Commit c87b5fb

Browse files
committed
github: specify workflow permissions
Update gh-pages has started failing with default permissions. It needs write permissions to be able to push to the gh-pages branch. (cherry picked from commit b024fa1)
1 parent 9122c58 commit c87b5fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ on:
66
- release-*
77
tags:
88
- v[0-9]+.[0-9]+.[0-9]+
9+
10+
concurrency:
11+
group: gh-pages
12+
13+
permissions:
14+
contents: read
15+
916
jobs:
1017
build:
1118
name: Update gh-pages
1219
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write
1322
steps:
1423

1524
- name: Check out repo

0 commit comments

Comments
 (0)