Skip to content

Commit

Permalink
github id token
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 3, 2024
1 parent 8a86b91 commit f440df5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ defaults:
concurrency:
group: doc-${{github.ref}}
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build documentation
Expand All @@ -27,6 +31,7 @@ jobs:
environment-file: docs/environment.yml
environment-name: lkpy
init-shell: bash
cache-environment: true
- id: install
name: 🍱 Install LensKit packages
run: |
Expand Down
6 changes: 6 additions & 0 deletions lkdev/workflows/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ def workflow():
"group": "doc-${{github.ref}}",
"cancel-in-progress": True,
},
"permissions": {
"contents": "read",
"pages": "write",
"id-token": "write",
},
"jobs": {
"build": job_build_docs(),
"archive": job_archive_docs(),
Expand Down Expand Up @@ -52,6 +57,7 @@ def stages_setup():
"environment-file": "docs/environment.yml",
"environment-name": "lkpy",
"init-shell": "bash",
"cache-environment": True,
},
},
{
Expand Down

0 comments on commit f440df5

Please sign in to comment.