chore: Add cooldown to GitHub Actions dependabot #1093
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: Clippy analysis | |
| on: | |
| push: | |
| schedule: | |
| - cron: '15 2 * * 1' | |
| jobs: | |
| analyze: | |
| name: Analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: swatinem/rust-cache@v2 | |
| - run: cargo install clippy-sarif sarif-fmt | |
| - name: Run clippy | |
| run: > | |
| cargo clippy | |
| --all-features | |
| --message-format=json | clippy-sarif | tee results.sarif | sarif-fmt | |
| continue-on-error: true | |
| - name: Upload analysis results to GitHub | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: results.sarif | |
| wait-for-processing: true |