docs: kzb-01 update readme #7
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: Pull Request Checks | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| jobs: | |
| pull-request-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the repository code | |
| - name: Code checkout | |
| id: code_checkout | |
| uses: actions/checkout@v4 | |
| # Check PR title prefix to ensure it follows the convention | |
| - name: Check PR title prefix | |
| run: | | |
| echo "PR Title: '${{ github.event.pull_request.title }}'" | |
| if [[ ! "${{ github.event.pull_request.title }}" =~ ^(ci|feat|fix|chore|docs|refactor): ]]; then | |
| echo "❌ PR title must start with one of: ci:, feat:, fix:, chore:, docs:, refactor:" | |
| exit 1 | |
| else | |
| echo "✅ PR title is valid." | |
| fi | |
| # Scan the repo for any sensitive information like secrets etc | |
| - name: Secret Scanning | |
| uses: trufflesecurity/trufflehog@main | |
| with: | |
| path: ./ # Code repository path | |
| base: "" # Start scanning from here | |
| head: ${{ github.head_ref || github.ref_name }} # Scan commits until here | |
| extra_args: --only-verified |