-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
43 changed files
with
267 additions
and
1,621 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 |
---|---|---|
|
@@ -4,12 +4,12 @@ on: | |
branches: | ||
- main | ||
paths: | ||
- "infra/**" | ||
- "**/*.bicep" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "infra/**" | ||
- "**/*.bicep" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -21,15 +21,23 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Microsoft Security DevOps Analysis | ||
uses: microsoft/security-devops-action@preview | ||
id: msdo | ||
continue-on-error: true | ||
- name: Run PSRule analysis | ||
uses: microsoft/[email protected] | ||
with: | ||
tools: templateanalyzer | ||
modules: PSRule.Rules.Azure | ||
baseline: Azure.Pillar.Security | ||
inputPath: infra/*.test.bicep | ||
outputFormat: Sarif | ||
outputPath: reports/ps-rule-results.sarif | ||
summary: true | ||
continue-on-error: true | ||
|
||
env: | ||
PSRULE_CONFIGURATION_AZURE_BICEP_FILE_EXPANSION: 'true' | ||
PSRULE_CONFIGURATION_AZURE_BICEP_FILE_EXPANSION_TIMEOUT: '30' | ||
|
||
- name: Upload alerts to Security tab | ||
- name: Upload results to security tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
if: github.repository_owner == 'Azure-Samples' | ||
with: | ||
sarif_file: ${{ steps.msdo.outputs.sarifFile }} | ||
sarif_file: reports/ps-rule-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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
infra/core/database/cosmos/mongo/cosmos-mongo-account.bicep
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
infra/core/database/cosmos/sql/cosmos-sql-role-assign.bicep
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.