Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ concurrency:

jobs:
# Builds/validates the docs and, on main, decides whether the content needs deploying. Runs
# untrusted PR code, so it has NO `environment` and NO access to VOID_TOKEN. The deploy is a
# separate main-only job below — we never deploy to Void from a PR.
# untrusted PR code, so it has NO `environment` and NO `id-token` permission — it cannot mint
# an OIDC token. The deploy is a separate main-only job below — we never deploy to Void from
# a PR.
docs-validation:
name: Docs Validation
runs-on: ubuntu-latest
Expand Down Expand Up @@ -81,6 +82,11 @@ jobs:
if: github.ref_name == 'main' && needs.docs-validation.outputs.deploy == 'true'
runs-on: ubuntu-latest
environment: void
# `void deploy` authenticates via GitHub OIDC: with id-token:write (and no VOID_TOKEN set)
# it mints an OIDC token (audience `void`) and exchanges it for a short-lived,
# project-scoped deploy token. No long-lived secret is stored in the repo.
permissions:
id-token: write
steps:
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2

Expand All @@ -92,7 +98,6 @@ jobs:
- name: Deploy to Void
run: vp run docs:void
env:
VOID_TOKEN: ${{ secrets.VOID_TOKEN }}
VOID_PROJECT: rolldown
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"vitepress-plugin-group-icons": "^1.7.5",
"vitepress-plugin-llms": "^1.13.1",
"vitepress-plugin-og": "^0.0.5",
"void": "^0.10.0"
"void": "^0.10.8"
}
}
Loading
Loading