Skip to content

Commit 37f1e8f

Browse files
Jgocunhaclaude
andcommitted
ci: scope Pages permissions to deploy job and disable checkout credential persistence
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6c22dca commit 37f1e8f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77

88
permissions:
99
contents: read
10-
pages: write
11-
id-token: write
1210

1311
concurrency:
1412
group: pages
@@ -19,6 +17,8 @@ jobs:
1917
runs-on: ubuntu-latest
2018
steps:
2119
- uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
2222

2323
- name: Install Doxygen
2424
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz
@@ -41,6 +41,9 @@ jobs:
4141
deploy:
4242
needs: build
4343
runs-on: ubuntu-latest
44+
permissions:
45+
pages: write
46+
id-token: write
4447
environment:
4548
name: github-pages
4649
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)