Skip to content

chore: add missing allowed-endpoints to workflows (#663) #1048

chore: add missing allowed-endpoints to workflows (#663)

chore: add missing allowed-endpoints to workflows (#663) #1048

Workflow file for this run

name: Node.js Docs CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
registry.npmjs.org:443
nodejs.org:443
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '14'
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run docs
- name: Ensure there are no changes in docs
run: git diff --exit-code docs/