Skip to content

Commit 5be3614

Browse files
FEAT: Create devskim.yml (microsoft#87)
### Summary This pull request introduces a new GitHub Actions workflow to integrate the DevSkim static analysis tool into the CI/CD pipeline. The workflow is designed to scan code for security issues and upload the results to the GitHub Security tab. ### New Workflow Integration: * [`.github/workflows/devskim.yml`](diffhunk://#diff-cf9c7e0ae50cd2d73f48fc95d5f4784c87b4932f23c9bf60f2223ef12262c4cdR1-R34): Added a new workflow named "DevSkim" that runs on `push` and `pull_request` events for the `main` branch, as well as on a weekly schedule. It uses the `microsoft/DevSkim-Action` to perform security scans and uploads the results in SARIF format using the `github/codeql-action/upload-sarif` action. ### Issue Reference Fixes: [AB#37674](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/37674) Co-authored-by: Gaurav Sharma <[email protected]>
1 parent 1f28994 commit 5be3614

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/devskim.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: DevSkim
7+
8+
on:
9+
push:
10+
branches: [ "main" ]
11+
pull_request:
12+
branches: [ "main" ]
13+
schedule:
14+
- cron: '44 7 * * 5'
15+
16+
jobs:
17+
lint:
18+
name: DevSkim
19+
runs-on: ubuntu-latest
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- name: Run DevSkim scanner
29+
uses: microsoft/DevSkim-Action@v1
30+
31+
- name: Upload DevSkim scan results to GitHub Security tab
32+
uses: github/codeql-action/upload-sarif@v3
33+
with:
34+
sarif_file: devskim-results.sarif

0 commit comments

Comments
 (0)