Skip to content

Commit 7d8118e

Browse files
authored
Adding Github to allowed list (#6785)
Git hub in allowed list
1 parent 28b462d commit 7d8118e

File tree

6 files changed

+25
-3
lines changed

6 files changed

+25
-3
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@
2525

2626
/cli/azd/extensions/azure.ai.agents/ @wbreza @vhvb1989 @hemarina @weikanglim @JeffreyCA @tg-msft @rajeshkamal5050 @trangevi @travisw
2727

28-
/cli/azd/extensions/azure.ai.finetune/ @wbreza @vhvb1989 @hemarina @weikanglim @JeffreyCA @tg-msft @rajeshkamal5050 @trangevi @travisw @achauhan-scc @kingernupur @ZubaeyrMSFT @rabollin @saanikaguptamicrosoft
28+
/cli/azd/extensions/azure.ai.finetune/ @wbreza @vhvb1989 @hemarina @weikanglim @JeffreyCA @tg-msft @rajeshkamal5050 @trangevi @travisw @achauhan-scc @kingernupur @ZubaeyrMSFT @rabollin @saanikaguptamicrosoft
29+
30+
/cli/azd/extensions/azure.ai.models/ @wbreza @vhvb1989 @hemarina @weikanglim @JeffreyCA @tg-msft @rajeshkamal5050 @trangevi @travisw @achauhan-scc @kingernupur @ZubaeyrMSFT @rabollin @saanikaguptamicrosoft
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Release History
22

33

4+
## 0.0.2-preview (2026-02-19)
5+
6+
- Fixed azcopy download redirect to allow `github.com` as a trusted host
7+
48
## 0.0.1-preview (2026-02-19)
59

610
- Initial release to support custom model creation

cli/azd/extensions/azure.ai.models/docs/development-guide.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,3 +473,17 @@ func TestParseEndpoint(t *testing.T) {
473473
- [ ] Persistent flags referenced from global, not passed by value
474474
- [ ] Recovery instructions reference commands that actually exist
475475
- [ ] Unit tests cover all validation/parsing functions
476+
- [ ] Snapshots are up to date (see below)
477+
478+
---
479+
480+
## Updating Snapshots
481+
482+
When adding or modifying commands/flags, the CLI usage snapshots must be regenerated. If CI fails with a "Snapshots may be out of date" error, run:
483+
484+
```bash
485+
cd cli/azd
486+
UPDATE_SNAPSHOTS=true go test ./cmd -run 'TestFigSpec|TestUsage'
487+
```
488+
489+
This updates snapshot files under `cli/azd/cmd/testdata/`. Commit the updated (or newly created) snapshot files along with your changes.

cli/azd/extensions/azure.ai.models/extension.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace: ai.models
33
displayName: Foundry Custom Models (Preview)
44
description: Extension for managing custom models in Azure AI Foundry. (Preview)
55
usage: azd ai models <command> [options]
6-
version: 0.0.1-preview
6+
version: 0.0.2-preview
77
language: go
88
capabilities:
99
- custom-commands

cli/azd/extensions/azure.ai.models/internal/azcopy/installer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ var allowedHosts = []string{
3030
".microsoft.com",
3131
".azure.com",
3232
".azureedge.net",
33+
".github.com",
34+
"github.com",
3335
}
3436

3537
// isAllowedHost checks if the URL host is in the allowed hosts list.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.1-preview
1+
0.0.2-preview

0 commit comments

Comments
 (0)