Add DevSkim workflow for code scanning

This workflow runs DevSkim for linting on pushes and pull requests to the main branch, and on a scheduled basis.

Signed-off-by: 0xMRTT <0xMRTT@proton.me>
This commit is contained in:
2026-04-06 16:24:05 +02:00
committed by 0xmrtt
parent 6e3c0d5041
commit e7668d733f
+34
View File
@@ -0,0 +1,34 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: DevSkim
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '40 21 * * 2'
jobs:
lint:
name: DevSkim
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@v1
- name: Upload DevSkim scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: devskim-results.sarif