chore(deps): update non-major dependencies #5124
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: Missing Redirects | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled, unlabeled] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 | |
| with: | |
| egress-policy: audit | |
| - name: Check if manual review has been performed | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 | |
| id: labels | |
| with: | |
| result-encoding: string | |
| script: | | |
| const { data: labels } = await github.rest.issues.listLabelsOnIssue({ | |
| ...context.repo, | |
| issue_number: context.issue.number | |
| }); | |
| return labels.map(l => l.name).includes('ci:manual-approve:missing-redirects') | |
| outputs: | |
| result: ${{ steps.labels.outputs.result }} | |
| redirects: | |
| needs: check | |
| if: needs.check.outputs.result == 'false' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Wait for Netlify site to be ready | |
| uses: jakepartusch/wait-for-netlify-action@f1e137043864b9ab9034ae3a5adc1c108e3f1a48 # v1.4 | |
| id: waitForNetlify | |
| with: | |
| site_name: "kongdeveloper" | |
| max_timeout: 900 | |
| - name: Check for missing redirects | |
| run: | | |
| cd tools/missing-redirects | |
| npm ci | |
| node index.js --base_url https://deploy-preview-${{ github.event.pull_request.number }}--kongdeveloper.netlify.app |