-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4eac32b
commit 4345d77
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: DevOps Secure Scanning | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
sample: | ||
name: Microsoft Security DevOps Analysis | ||
|
||
# MSDO runs on windows-latest. | ||
# ubuntu-latest also supported | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# Checkout your code repository to scan | ||
- uses: actions/checkout@v3 | ||
|
||
# Run analyzers | ||
- name: Run Microsoft Security DevOps Analysis | ||
uses: microsoft/security-devops-action@v1.10.0 | ||
id: msdo | ||
#with: | ||
# config: string. Optional. A file path to an MSDO configuration file ('*.gdnconfig'). | ||
# policy: 'GitHub' | 'microsoft' | 'none'. Optional. The name of a well-known Microsoft policy. If no configuration file or list of tools is provided, the policy may instruct MSDO which tools to run. Default: GitHub. | ||
# categories: string. Optional. A comma-separated list of analyzer categories to run. Values: 'secrets', 'code', 'artifacts', 'IaC', 'containers. Example: 'IaC,secrets'. Defaults to all. | ||
# languages: string. Optional. A comma-separated list of languages to analyze. Example: 'javascript,typescript'. Defaults to all. | ||
# tools: string. Optional. A comma-separated list of analyzer tools to run. Values: 'bandit', 'binskim', 'eslint', 'templateanalyzer', 'terrascan', 'trivy'. | ||
|
||
# Upload alerts to the Security tab | ||
- name: Upload alerts to Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: ${{ steps.msdo.outputs.sarifFile }} | ||
|
||
# Upload alerts file as a workflow artifact | ||
- name: Upload alerts file as a workflow artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: alerts | ||
path: ${{ steps.msdo.outputs.sarifFile }} |