chore: fix sec, remove key #294
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: Template Validation | |
| on: | |
| pull_request_target: | |
| branches: | |
| - main | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Validate template | |
| id: validate-template | |
| uses: ./.github/actions/validate-template | |
| with: | |
| path: ${{ github.workspace }} | |
| - name: Create or update comment on failure | |
| if: ${{ steps.validate-template.outputs.status != '0' && github.event_name == 'pull_request_target' && !github.event.pull_request.head.repo.fork }} | |
| uses: peter-evans/create-or-update-comment@v4 | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| ## ❌ Template Validation Failed | |
| ${{ steps.validate-template.outputs.detail }} | |
| - name: Fail workflow if validation failed | |
| if: ${{ steps.validate-template.outputs.status != '0' }} | |
| run: | | |
| echo "::error::Template validation failed" | |
| exit 1 |