Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing DevSkim Action #533

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/devskim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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", v/* ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '45 17 * * 5'

jobs:
lint:
name: DevSkim
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run DevSkim scanner
uses: microsoft/[email protected]
with:
directory-to-scan: DevSkim-DotNet
exclude-rules: DS1234,DS126858
extra-options: -x Verbose
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: devskim-results.sarif # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: devskim-results.sarif
# The desired behavior if no files are found using the provided path.
if-no-files-found: error # optional, default is warn
# Duration after which artifact will expire in days. 0 means using default retention.
# - name: Upload DevSkim scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: devskim-results.sarif
Loading