Issue Dependency-Link Scanner #73
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Issue Dependency-Link Scanner | |
| on: | |
| schedule: | |
| # Runs daily at 06:00 UTC to catch stale/broken references across all open issues | |
| - cron: "0 6 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| dry_run: | |
| description: "Print report without failing (true/false)" | |
| required: false | |
| default: "false" | |
| output_json: | |
| description: "Emit machine-readable JSON (true/false)" | |
| required: false | |
| default: "false" | |
| permissions: | |
| issues: read | |
| contents: read | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Run unit tests | |
| run: node --test scripts/scan-issue-dependency-links.test.js | |
| - name: Scan all open issues for broken dependency links | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| GITHUB_REPO: ${{ github.repository }} | |
| DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }} | |
| OUTPUT_JSON: ${{ github.event.inputs.output_json || 'false' }} | |
| run: node scripts/scan-issue-dependency-links.js |