[codex] 修复 Dependabot 安全告警 #9
Workflow file for this run
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: Spec Guard | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| jobs: | |
| spec-link-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Validate spec link | |
| shell: bash | |
| run: | | |
| body='${{ github.event.pull_request.body }}' | |
| if ! printf "%s" "$body" | grep -Eq "规范链接:\s*\\S"; then | |
| echo "::error::Missing spec link. Please fill the \"规范链接\" field in the PR template." | |
| exit 1 | |
| fi |