Skip to content

Commit 653b416

Browse files
authored
Merge branch 'main' into mawasile/add-additional-logging-to-infra
2 parents 3e1c840 + 670ed2a commit 653b416

File tree

7 files changed

+29
-12
lines changed

7 files changed

+29
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": "9.0"
1717
},
1818
"ghcr.io/azure/azure-dev/azd:latest": {
19-
"version": "1.18.1"
19+
"version": "1.20.0"
2020
},
2121
"./features/dev-tools": {}
2222
},
@@ -38,8 +38,9 @@
3838
"bierner.markdown-mermaid",
3939
"ms-dotnettools.csharp",
4040
"ms-dotnettools.vscode-dotnet-runtime"
41-
// Include other VSCode extensions if needed
42-
// Right click on an extension inside VSCode to add directly to devcontainer.json, or copy the extension ID
41+
42+
// Include other VSCode extensions if needed. Right click on an extension inside VSCode
43+
// to add directly to devcontainer.json, or copy the extension ID
4344
],
4445
"settings": {
4546
"terraform.languageServer.enable":true,

.github/workflows/azure-dev-down.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
default: "eastus"
1515

1616
permissions:
17-
id-token: write
17+
id-token: write # Needed for OIDC Authentication
1818
contents: read
1919

2020
jobs:
@@ -36,7 +36,7 @@ jobs:
3636
version: '1.20.0' # Specify your desired azd version here
3737

3838
- name: Setup Node.js
39-
uses: actions/setup-node@v5
39+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
4040
with:
4141
node-version: '18.x'
4242

.github/workflows/azure-dev.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@ on:
2424
# Run when pull requests are opened or updated
2525
branches:
2626
- main
27+
2728
# GitHub Actions workflow to deploy to Azure using azd
29+
# Ensure only one deployment runs at a time to prevent conflicts
30+
concurrency:
31+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
32+
cancel-in-progress: false
33+
2834
permissions:
2935
actions: read # Needed for uploading SARIF reports
3036
security-events: write # Needed for uploading SARIF reports
31-
id-token: write
37+
id-token: write # Needed for OIDC Authentication
3238
contents: read
3339

3440

@@ -42,6 +48,8 @@ jobs:
4248
steps:
4349
- name: Checkout code
4450
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
51+
with:
52+
persist-credentials: false
4553

4654
- name: Install azd
4755
uses: Azure/setup-azd@cf638ffd167fc81e1851241a478a723c05fa9cb3 # v2.2.0
@@ -193,7 +201,7 @@ jobs:
193201
with:
194202
sarif_file: ./checkov-results.sarif/results_sarif.sarif
195203

196-
- name: Azd down
204+
- name: Destroy Infrastructure
197205
if: ${{ github.event.inputs.run_azd_down == 'true' || github.event_name == 'pull_request' }}
198206
env:
199207
POWER_PLATFORM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}

.github/workflows/terraform-validate.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
contents: read
1414
security-events: write
1515
pull-requests: write # Allow workflow to comment on PRs
16+
id-token: write # Needed for OIDC Authentication
1617

1718
# Global environment variables
1819
env:
@@ -49,10 +50,15 @@ jobs:
4950
with:
5051
fetch-depth: 0 # Required for proper GitLeaks scanning
5152

53+
- name: Setup Node.js
54+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
55+
with:
56+
node-version: '18.x'
57+
5258
- name: Setup Terraform
5359
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
5460
with:
55-
terraform_version: "1.12.2" # Pinning specific version
61+
terraform_version: "1.13.3" # Pinning specific version
5662

5763
- name: Terraform Init
5864
id: tf-init

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<LangVersion>latest</LangVersion>

infra/main.naming.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
locals {
77
# Organization suffixes and prefixes are optional, and we need to form an array of non-empty values only
8-
org_prefix = compact([var.org_naming.org_prefix])
9-
org_suffix = compact([var.org_naming.org_environment, var.org_naming.org_suffix])
8+
org_prefix = compact([var.org_naming.org_prefix])
9+
org_suffix = compact([var.org_naming.org_environment, var.org_naming.org_suffix])
10+
azd_env_seed = parseint(substr(md5(var.azd_environment_name), 0, 8), 16)
1011
}
1112

1213
# Generate unique names for primary resources
@@ -26,6 +27,7 @@ resource "azurecaf_name" "main_names" {
2627
prefixes = local.org_prefix
2728
suffixes = local.org_suffix
2829
random_length = 4
30+
random_seed = local.azd_env_seed
2931
# use_slug = false
3032
clean_input = true
3133
}

tests/Copilot/CopilotTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>

0 commit comments

Comments
 (0)