Skip to content
This repository was archived by the owner on Aug 24, 2026. It is now read-only.

CI: add least-privilege permissions to GitHub Actions workflows #113

CI: add least-privilege permissions to GitHub Actions workflows

CI: add least-privilege permissions to GitHub Actions workflows #113

Workflow file for this run

name: Docs
on:
push:
branches:
- 'main'
pull_request:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
actions: write
contents: read
pull-requests: read
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-node
- name: Cache .docz folder
uses: actions/cache@v4
with:
path: ./.docz
key: docz-${{ matrix.node }}-gatsby-v1-${{ github.run_id }}
restore-keys: docz-${{ matrix.node }}-gatsby-v1-
- name: Build Docs
run: yarn run docs-build