chore(deps-dev): bump @types/node from 20.19.43 to 26.1.2 #21
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: PatchBrake Code Scanning | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| patchbrake: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install PatchBrake | |
| run: npm install -g patchbrake@0.2.0 --ignore-scripts | |
| - name: Run PatchBrake SARIF scan | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| base="origin/${{ github.base_ref }}" | |
| head="HEAD" | |
| else | |
| base="HEAD~1" | |
| head="HEAD" | |
| fi | |
| patchbrake scan \ | |
| --base "$base" \ | |
| --head "$head" \ | |
| --format sarif \ | |
| --output patchbrake.sarif \ | |
| --fail-on never \ | |
| --no-custom-rules \ | |
| --disallow-inline-ignore \ | |
| --fail-on-new-ignore | |
| - name: Upload PatchBrake SARIF | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: patchbrake.sarif |