-
Notifications
You must be signed in to change notification settings - Fork 4
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
3157f03
commit 013409d
Showing
8 changed files
with
70 additions
and
17 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
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 |
---|---|---|
@@ -1,13 +1,26 @@ | ||
# | ||
# Repository validation | ||
# Repository analysis | ||
# | ||
|
||
# NOTES: | ||
# This worflow uses PSRule, CodeQL, and DevSkim. | ||
# You can read more about these linting tools and configuration options here: | ||
# PSRule - https://aka.ms/ps-rule and https://github.com/Microsoft/PSRule.Rules.MSFT.OSS | ||
# CodeQL - https://codeql.github.com/docs/codeql-overview/about-codeql/ | ||
# DevSkim - https://github.com/microsoft/DevSkim-Action and https://github.com/Microsoft/DevSkim | ||
|
||
name: Analyze | ||
on: | ||
- pull_request | ||
- push | ||
push: | ||
branches: [ main, 'release/*' ] | ||
pull_request: | ||
branches: [ main, 'release/*' ] | ||
schedule: | ||
- cron: '15 20 * * 0' # At 08:15 PM, on Sunday each week | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze repository | ||
oss: | ||
name: Analyze with PSRule | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
|
@@ -19,3 +32,25 @@ jobs: | |
uses: Microsoft/ps-rule@main | ||
with: | ||
source: src/PSRule.Rules.MSFT.OSS/ | ||
|
||
devskim: | ||
name: Analyze with DevSkim | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Run DevSkim scanner | ||
uses: microsoft/DevSkim-Action@v1 | ||
with: | ||
directory-to-scan: src/ | ||
|
||
- name: Upload results to security tab | ||
uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
sarif_file: devskim-results.sarif |
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
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
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
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
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
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