Skip to content
Merged
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
23 changes: 7 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,25 +114,16 @@ jobs:
ZITI_CI_GH_KEY: ${{ secrets.ZITI_CI_GH_KEY }}
JENKINS_CI_BB_KEY: ${{ secrets.JENKINS_CI_BB_KEY }}

# Mint a short-lived token from the openziti-stargazer-audit GitHub App
# (installed org-wide, metadata:read). GitHub's 2026-06-30 restriction blocks
# PATs from the List-Stargazers endpoint, so an App installation token is the
# only maintenance-free way to read it. owner: openziti scopes the token to
# that org's installation (all repos, including future ones).
- name: Mint stargazer App token
id: star-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.STARGAZER_APP_ID }}
private-key: ${{ secrets.STARGAZER_APP_PRIVATE_KEY }}
owner: openziti

- name: Build & Publish Docusaurus Site
env:
GITHUB_TOKEN: ${{ github.token }}
# gh-stats.sh reads the stargazer API via this (mapped to GH_TOKEN). It's the
# App installation token minted above -- see the "Mint stargazer App token" step.
STARGAZERS_READ_TOKEN: ${{ steps.star-token.outputs.token }}
# gh-stats.sh (openziti/ziti-doc) reads the stargazer API via this, mapped to
# GH_TOKEN. It has to be a CLASSIC PAT on an account with admin on the openziti
# repos: GitHub restricts stargazer data to admins and collaborators, and admin
# access alone isn't enough -- a fine-grained PAT on the same account and an
# org-wide App installation token are both refused. See STARGAZERS.md in
# openziti/ziti-doc.
ZITI_CI_STARGAZERS_READ_TOKEN: ${{ secrets.ZITI_CI_STARGAZERS_READ_TOKEN }}
ZITI_HOTJAR_APPID: ${{ secrets.PROD_DOC_HOTJAR_APPID }}
DEPLOY_ENV: 'kinsta'
DOCUSAURUS_URL: 'https://netfoundry.io'
Expand Down
Loading