docs: add CVE fix guidance and automation workflow #3628
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: PR Title Validation | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| validate-pr-title: | |
| name: Validate PR Title | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Validate PR Title Format | |
| uses: amannn/action-semantic-pull-request@v5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| # Configure the allowed types | |
| types: | | |
| feat | |
| fix | |
| docs | |
| style | |
| refactor | |
| perf | |
| test | |
| build | |
| ci | |
| chore | |
| revert | |
| # Allow breaking changes | |
| requireScope: false | |
| # Allow empty scope | |
| allowMergeCommits: true | |
| # Disable validation for draft PRs | |
| ignoreLabels: | | |
| draft | |
| wip | |
| # Configure the subject pattern | |
| subjectPattern: ^(?![A-Z]).+$ | |
| subjectPatternError: | | |
| The subject "{subject}" found in the pull request title "{title}" didn't match the configured pattern. Please ensure that the subject doesn't start with a capital letter. | |
| # Configure the subject pattern error | |
| validateSingleCommit: false | |
| # Configure the body pattern (optional) | |
| bodyPattern: ^.*$ | |
| bodyPatternError: | | |
| The pull request body didn't match the configured pattern. | |
| # Configure the body pattern error | |
| ignoreLabelsForTitle: | | |
| draft | |
| wip | |
| # Configure the body pattern error | |
| ignoreLabelsForBody: | | |
| draft | |
| wip |