Generate and upload SARIF file #2298
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: Generate and upload SARIF file | |
| on: | |
| pull_request: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| schedule: | |
| - cron: '30 12 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| generate-and-upload-sarif: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: npm install | |
| - run: node markdownlint-cli2-bin.mjs --config .github/sarif.markdownlint-cli2.jsonc '**/README.md' '#node_modules' | |
| continue-on-error: true | |
| - uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: markdownlint-cli2-sarif.sarif |