Skip to content

Commit 14c9986

Browse files
committed
docs: update code block syntax from bash to PowerShell in DIY guide for Code Quality domain
1 parent 716d945 commit 14c9986

1 file changed

Lines changed: 44 additions & 2 deletions

File tree

docs/DIY-Code-Quality-Domain.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,39 @@ This guide walks you through creating the Code Quality domain's two repositories
2121

2222
Create both repositories in the `devopsabcs-engineering` organization:
2323

24+
**PowerShell:**
25+
26+
```powershell
27+
# Scanner demo-app repository
28+
gh repo create devopsabcs-engineering/code-quality-scan-demo-app `
29+
--public `
30+
--description "Code Quality scanner demo-app with 5 sample apps, CI/CD, SARIF, and Power BI PBIP"
31+
32+
# Workshop repository (as template)
33+
gh repo create devopsabcs-engineering/code-quality-scan-workshop `
34+
--public `
35+
--template `
36+
--description "Hands-on Code Quality scanning workshop with 10 labs"
37+
```
38+
39+
<details>
40+
<summary>Bash equivalent</summary>
41+
2442
```bash
2543
# Scanner demo-app repository
2644
gh repo create devopsabcs-engineering/code-quality-scan-demo-app \
27-
--public --description "Code Quality scanner demo-app with 5 sample apps, CI/CD, SARIF, and Power BI PBIP"
45+
--public \
46+
--description "Code Quality scanner demo-app with 5 sample apps, CI/CD, SARIF, and Power BI PBIP"
2847

2948
# Workshop repository (as template)
3049
gh repo create devopsabcs-engineering/code-quality-scan-workshop \
31-
--public --template --description "Hands-on Code Quality scanning workshop with 10 labs"
50+
--public \
51+
--template \
52+
--description "Hands-on Code Quality scanning workshop with 10 labs"
3253
```
3354

55+
</details>
56+
3457
## Step 2: Scaffold the Demo-App Repository
3558

3659
Use the `/scaffold-domain` prompt with `domain=code-quality` to generate the full repo structure. The `DomainScaffolder` agent loads `skills/domain-scaffolding/SKILL.md` and produces:
@@ -89,6 +112,8 @@ Both converters must produce SARIF v2.1.0 with `automationDetails.id` prefixed w
89112

90113
Provision Azure AD federation, GitHub secrets, and environments:
91114

115+
**PowerShell:**
116+
92117
```powershell
93118
# Set up Azure AD app registration and federated credentials
94119
./scripts/setup-oidc.ps1
@@ -101,6 +126,23 @@ Provision Azure AD federation, GitHub secrets, and environments:
101126
./scripts/bootstrap-demo-apps-ado.ps1
102127
```
103128

129+
<details>
130+
<summary>Bash equivalent</summary>
131+
132+
```bash
133+
# Set up Azure AD app registration and federated credentials
134+
pwsh ./scripts/setup-oidc.ps1
135+
136+
# Create demo app repos, push content, configure secrets and environments
137+
pwsh ./scripts/bootstrap-demo-apps.ps1
138+
139+
# (Optional) Set up ADO project, repos, variable groups, and WIF
140+
pwsh ./scripts/setup-oidc-ado.ps1
141+
pwsh ./scripts/bootstrap-demo-apps-ado.ps1
142+
```
143+
144+
</details>
145+
104146
## Step 7: Write the 10 Workshop Labs
105147

106148
Create lab content following the standard progression:

0 commit comments

Comments
 (0)