Skip to content

Commit 90c9108

Browse files
authored
Merge pull request #210 from pauldotyu/main
AKS store demo 2.0
2 parents 79e5a4c + b3601d3 commit 90c9108

File tree

284 files changed

+22024
-25787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+22024
-25787
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,14 @@
4747
"golang.go",
4848
"Vue.volar",
4949
"rust-lang.rust-analyzer",
50-
"ms-python.python"
50+
"ms-python.python",
51+
"ms-kubernetes-tools.vscode-aks-tools",
52+
"ms-azuretools.vscode-bicep",
53+
"hashicorp.terraform",
54+
"ms-playwright.playwright",
55+
"redhat.vscode-yaml",
56+
"ms-azuretools.vscode-azureresourcegroups"
5157
]
5258
}
5359
}
54-
}
60+
}

.github/workflows/audit-bicep.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
1-
name: Scan Bicep code
1+
name: audit-bicep
22
on:
33
push:
4-
branches:
4+
branches:
55
- main
66
paths:
77
- "infra/bicep/**"
88
pull_request:
9-
branches:
9+
branches:
1010
- main
1111
paths:
1212
- "infra/bicep/**"
1313
workflow_dispatch:
1414

1515
jobs:
16-
build:
16+
psrule:
1717
runs-on: ubuntu-latest
1818
permissions:
1919
security-events: write
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2323

24-
- name: Run Microsoft Security DevOps Analysis
25-
uses: microsoft/security-devops-action@preview
26-
id: msdo
27-
continue-on-error: true
24+
- name: Run PSRule analysis
25+
uses: microsoft/ps-rule@46451b8f5258c41beb5ae69ed7190ccbba84112c # v2.9.0
2826
with:
29-
tools: templateanalyzer
27+
inputPath: main.test.bicep
28+
modules: PSRule.Rules.Azure
29+
option: ps-rule.yaml
30+
outputFormat: Sarif
31+
outputPath: reports/ps-rule-results.sarif
32+
path: infra/bicep
33+
summary: true
34+
env:
35+
PSRULE_AZURE_BICEP_PATH: "/usr/local/bin/bicep"
3036

3137
- name: Upload alerts to Security tab
32-
uses: github/codeql-action/upload-sarif@v3
38+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3
3339
if: github.repository_owner == 'Azure-Samples'
3440
with:
35-
sarif_file: ${{ steps.msdo.outputs.sarifFile }}
41+
sarif_file: infra/bicep/reports/ps-rule-results.sarif

.github/workflows/audit-terraform.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
# separate terms of service, privacy policy, and support
44
# documentation.
55

6-
name: Scan Terraform code
6+
name: audit-terraform
77

88
on:
99
push:
10-
branches:
10+
branches:
1111
- main
1212
paths:
1313
- "infra/terraform/**"
1414
pull_request:
15-
branches:
15+
branches:
1616
- main
1717
paths:
1818
- "infra/terraform/**"
@@ -32,18 +32,19 @@ jobs:
3232
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
3333

3434
- name: Run Trivy vulnerability scanner in IaC mode for Terraform
35-
uses: aquasecurity/trivy-action@b2933f565dbc598b29947660e66259e3c7bc8561 # 0.20.0
35+
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # v0.30.0
3636
with:
37-
scan-type: 'config'
38-
scan-ref: './infra/terraform'
37+
scan-type: "config"
38+
scan-ref: "./infra/terraform"
3939
hide-progress: true
40-
format: 'sarif'
41-
output: 'trivy-terraform-results.sarif'
42-
exit-code: '1'
40+
format: "sarif"
41+
output: "trivy-terraform-results.sarif"
42+
exit-code: "1"
4343
ignore-unfixed: true
44-
severity: 'CRITICAL,HIGH'
44+
severity: "CRITICAL,HIGH"
45+
trivyignores: "./infra/terraform/.trivyignore"
4546

4647
- name: Upload Trivy scan results to GitHub Security tab
47-
uses: github/codeql-action/upload-sarif@e14ec90e52a057614c707baecf2ed88a81b68bc9 # v2
48+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3
4849
with:
49-
sarif_file: 'trivy-terraform-results.sarif'
50+
sarif_file: "trivy-terraform-results.sarif"

.github/workflows/azure-dev.yaml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/test-azd-deployment.yaml

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)