Skip to content

Commit 1c11a2b

Browse files
committed
Set permissions on build_docs workflow
1 parent 363f6c0 commit 1c11a2b

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/build_docs.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@
22
name: Deploy static content to Pages
33

44
on:
5+
# Runs on pushes targeting the default branch
56
push:
6-
branches: ["main"]
7-
pull_request:
8-
branches: ["main"]
7+
branches:
8+
- "**"
99

10-
# Allows you to run this workflow manually from the Actions tab
10+
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:
12-
workflow_call:
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow one concurrent deployment
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: true
1323

1424
jobs:
1525
build:

0 commit comments

Comments
 (0)