Skip to content

Commit e5ce722

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 37f1a45 commit e5ce722

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/gh-pages.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ on:
88
- v[0-9]+.[0-9]+.[0-9]+
99
release:
1010
types: [published]
11+
12+
concurrency:
13+
group: gh-pages
14+
15+
permissions:
16+
contents: read
17+
1118
jobs:
1219
build:
1320
name: Update gh-pages
1421
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
1524
steps:
16-
1725
- name: Install dependencies
1826
run: |
1927
sudo apt-get install -y jq curl

0 commit comments

Comments
 (0)