Broken Links Check #31
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: Broken Links Check | |
| on: | |
| schedule: | |
| - cron: "0 0 */2 * *" | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-broken-links: | |
| name: Check Broken Links | |
| runs-on: hiero-client-sdk-linux-medium | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 | |
| with: | |
| egress-policy: audit | |
| - name: Setup Node | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version: 20 | |
| - name: Checkout Code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install pnpm | |
| uses: step-security/action-setup@3d419c73e38e670dbffe349ffff26dd13c164640 # v4.2.0 | |
| with: | |
| version: 10.17.0 | |
| - name: Install Dependencies | |
| run: pnpm add @octokit/rest axios dotenv path axios-retry | |
| - name: Run Broken Links Check | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: node scripts/broken-links-check.js | |