microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
.github/workflows/devskim.yml
33lines · modeblame
1dc580b8Ian Davis3 years ago | 1 | name: DevSkim |
| 2 | | |
| 3 | on: | |
| 4 | pull_request: | |
e7bd0d97Stefan J. Wernli9 months ago | 5 | branches: [main] |
ae523d48Stefan J. Wernli2 years ago | 6 | merge_group: |
1dc580b8Ian Davis3 years ago | 7 | workflow_dispatch: |
| 8 | schedule: | |
| 9 | # set schedule to run at 2AM PT on Saturdays | |
e7bd0d97Stefan J. Wernli9 months ago | 10 | - cron: "0 9 * * Sat" |
1dc580b8Ian Davis3 years ago | 11 | |
| 12 | jobs: | |
| 13 | lint: | |
| 14 | name: DevSkim | |
| 15 | runs-on: ubuntu-latest | |
| 16 | permissions: | |
| 17 | # required for all workflows | |
| 18 | security-events: write | |
| 19 | | |
| 20 | # only required for workflows in private repositories | |
| 21 | actions: read | |
| 22 | contents: read | |
| 23 | steps: | |
| 24 | - name: Checkout code | |
9831093dSalman Chishti8 months ago | 25 | uses: actions/checkout@v6 |
1dc580b8Ian Davis3 years ago | 26 | |
| 27 | - name: Run DevSkim scanner | |
| 28 | uses: microsoft/DevSkim-Action@v1 | |
ae523d48Stefan J. Wernli2 years ago | 29 | |
1dc580b8Ian Davis3 years ago | 30 | - name: Upload DevSkim scan results to GitHub Security tab |
19e3bf25Pratik Fandade1 years ago | 31 | uses: github/codeql-action/upload-sarif@v3 |
1dc580b8Ian Davis3 years ago | 32 | with: |
| 33 | sarif_file: devskim-results.sarif |