Skip to content

0.2.0

0.2.0 #2

Workflow file for this run

# PR Validation: lint + CI (build + test, no package)
name: PR
on:
pull_request:
branches: [main]
permissions:
contents: read
pull-requests: read
concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
lint:
uses: ./.github/workflows/_lint.yml
ci:

Check failure on line 20 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / PR

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 20, Col: 3): Error calling workflow 'Timwood0x10/CodeScope/.github/workflows/_ci.yml@6cbdb73ba0b0c63f4971fc7fcb0d2bc4f35c141e'. The workflow is requesting 'actions: write', but is only allowed 'actions: none'.
needs: [lint]
if: ${{ !cancelled() && needs.lint.result == 'success' }}
uses: ./.github/workflows/_ci.yml
with:
skip_perf: true
skip_package: true
# ── Single required status check ──
ci-ok:
needs: [lint, ci]
if: ${{ always() }}
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: All PR stages must succeed or skip
env:
RESULTS: ${{ toJSON(needs) }}
run: |
echo "$RESULTS" | python3 -c "
import json, sys
needs = json.load(sys.stdin)
bad = {k: v['result'] for k, v in needs.items() if v['result'] not in ('success', 'skipped')}
if bad:
print('CI NOT OK:', bad)
sys.exit(1)
print('CI OK:', ', '.join(needs))
"