Skip to content

Commit 32bf9ef

Browse files
authored
Add DevSkim workflow for code scanning (#479)
# Description This pull request introduces a new GitHub Actions workflow to integrate DevSkim, an automated security scanning tool, into the CI/CD pipeline. The workflow runs on pushes, pull requests, and on a weekly schedule, scanning code for security issues and uploading results to the GitHub Security tab. **Security and CI/CD Integration:** * Added a new workflow file `.github/workflows/devskim.yml` to automate DevSkim security scans on the `main` branch for pushes, pull requests, and on a weekly schedule. The workflow checks out the code, runs the DevSkim scanner, and uploads the results in SARIF format to GitHub's Security tab. # Change type - [ ] Bug fix (non-breaking change) - [ ] Code style update (formatting, local variables) - [] New Feature (non-breaking change that adds new functionality without impacting existing) - [ ] Breaking change (fix or feature that may cause functionality impact) - [x] Other # Checklist: - [x] My code follows the style and contribution guidelines of this project. - [x] I have tested and validated my code changes.
1 parent b9ea352 commit 32bf9ef

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.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: '20 13 * * 3'
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)