Skip to content

Commit ecd9973

Browse files
committed
docs: fix github pages permissions
Signed-off-by: Jan Larwig <jan@larwig.com>
1 parent c8f359c commit ecd9973

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55
branches:
66
- main
77
paths:
8-
- .github/workflows/publish-docs.yml
8+
- .github/workflows/docs.yml
99
- common.mk
1010
- versions.mk
1111
- docs/**
1212
- hack/tools/**
1313
pull_request:
1414
paths:
15-
- .github/workflows/publish-docs.yml
15+
- .github/workflows/docs.yml
1616
- common.mk
1717
- versions.mk
1818
- docs/**
@@ -21,6 +21,8 @@ on:
2121

2222
permissions:
2323
contents: read
24+
pages: write
25+
id-token: write
2426

2527
concurrency:
2628
group: ${{ github.workflow }}-${{ github.ref }}
@@ -59,9 +61,6 @@ jobs:
5961
if: github.ref == 'refs/heads/main'
6062
needs: build
6163
runs-on: ubuntu-latest
62-
permissions:
63-
pages: write
64-
id-token: write
6564
environment:
6665
name: github-pages
6766
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)