Files
pezkuwi-apps/.github/workflows/test-nightly.yml
T
Satoshi Qazi Muhammed 1a4d109f69 ci: give every workflow an explicit least-privilege GITHUB_TOKEN
CodeQL actions/missing-workflow-permissions: chain-endpoints.yml, lock.yml, pr-any.yml, test-nightly.yml had no permissions block, so their jobs received the repository default token. Read-only where nothing writes through GITHUB_TOKEN; lock-threads gets the issues/pull-requests/discussions write it documents; workflows that write do it with a separate bot or app token, so GITHUB_TOKEN stays read-only.
2026-10-20 22:29:20 +04:00

35 lines
801 B
YAML

name: Nightly tests run
on:
workflow_dispatch:
schedule:
- cron: '1 5 * * *'
# Read-only token: no step writes through GITHUB_TOKEN.
permissions:
contents: read
jobs:
alltests:
strategy:
matrix:
step: ['test:all']
name: ${{ matrix.step }}
runs-on: ubuntu-latest
# the full suite runs in about 2 minutes; a hang fails early instead of
# holding a runner for hours
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
# test:all includes the .slow. specs, which need a live dev node
- name: dev node
run: .github/scripts/start-dev-node.sh
- name: ${{ matrix.step }}
run: |
yarn install --immutable
yarn ${{ matrix.step }}