Skip to content

Commit bc1e5c7

Browse files
Merge branch 'main' into macos-arm64-pipx
2 parents e92651c + f73cc25 commit bc1e5c7

36 files changed

+147
-118
lines changed

.github/workflows/create_sbom_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
}
5656
- name: Install SYFT tool on Windows
5757
if: ${{ runner.os == 'Windows' }}
58-
run: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b D:/syft v0.100.0
58+
run: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b D:/syft
5959
- name: Install SYFT tool on Ubuntu or macOS
6060
if: ${{ runner.os != 'Windows' }}
6161
run: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin v0.100.0
@@ -74,7 +74,7 @@ jobs:
7474
- name: Compress SBOM file
7575
run: Compress-Archive sbom.json sbom.json.zip
7676
#Upload artifact action
77-
- uses: actions/upload-artifact@v3
77+
- uses: actions/upload-artifact@v4
7878
with:
7979
name: sbom-${{ github.event.client_payload.agentSpec }}-${{ github.event.client_payload.imageVersion }}
8080
path: sbom.json.zip

helpers/software-report-base/SoftwareReport.BaseNodes.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ class BaseNode {
1313
}
1414

1515
[String] ToMarkdown([Int32] $Level) {
16-
throw "Abtract method 'ToMarkdown(level)' is not implemented for '$($this.GetType().Name)'"
16+
throw "Abstract method 'ToMarkdown(level)' is not implemented for '$($this.GetType().Name)'"
1717
}
1818

1919
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
20-
throw "Abtract method 'IsSimilarTo' is not implemented for '$($this.GetType().Name)'"
20+
throw "Abstract method 'IsSimilarTo' is not implemented for '$($this.GetType().Name)'"
2121
}
2222

2323
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
24-
throw "Abtract method 'IsIdenticalTo' is not implemented for '$($this.GetType().Name)'"
24+
throw "Abstract method 'IsIdenticalTo' is not implemented for '$($this.GetType().Name)'"
2525
}
2626
}
2727

@@ -39,7 +39,7 @@ class BaseToolNode: BaseNode {
3939
}
4040

4141
[String] GetValue() {
42-
throw "Abtract method 'GetValue' is not implemented for '$($this.GetType().Name)'"
42+
throw "Abstract method 'GetValue' is not implemented for '$($this.GetType().Name)'"
4343
}
4444

4545
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
@@ -53,4 +53,4 @@ class BaseToolNode: BaseNode {
5353
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
5454
return $this.IsSimilarTo($OtherNode) -and ($this.GetValue() -eq $OtherNode.GetValue())
5555
}
56-
}
56+
}

images.CI/macos/anka/Anka.Helpers.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Push-AnkaTemplateToRegistry {
1313
[string] $TemplateName
1414
)
1515

16-
# if registry uuid doesn't match than delete an image in registry
16+
# if registry uuid doesn't match then delete an image in registry
1717
$AnkaCaCrtPath="$HOME/.config/anka/certs/anka-ca-crt.pem"
1818
$images = anka --machine-readable registry --cacert $AnkaCaCrtPath --registry-path $RegistryUrl list | ConvertFrom-Json | ForEach-Object body
1919
$images | Where-Object name -eq $TemplateName | ForEach-Object {

images.CI/macos/anka/CreateCleanAnkaTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function Invoke-SoftwareUpdate {
7676
$ipAddress = Get-AnkaVMIPAddress -VMName $TemplateName
7777

7878
# Unenroll Seed
79-
Write-Host "`t[*] Reseting the seed before requesting stable versions"
79+
Write-Host "`t[*] Resetting the seed before requesting stable versions"
8080
Remove-CurrentBetaSeed -HostName $ipAddress | Show-StringWithFormat
8181

8282
# Install Software Updates

images.CI/macos/anka/Service.Helpers.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ function Get-MacOSInstaller {
171171
Write-Host "`t[*] Beta Version requested. Enrolling machine to DeveloperSeed"
172172
sudo $seedutil enroll DeveloperSeed | Out-Null
173173
} else {
174-
Write-Host "`t[*] Reseting the seed before requesting stable versions"
174+
Write-Host "`t[*] Resetting the seed before requesting stable versions"
175175
sudo $seedutil unenroll | Out-Null
176176
}
177177

178-
# Validate there is no softwareupdate at the moment
178+
# Validate there is no software update at the moment
179179
Test-SoftwareUpdate
180180

181181
# Validate availability OSVersion

images/macos/scripts/build/install-android-sdk.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
source ~/utils/utils.sh
88

9-
add_filtered_instalaltion_components() {
9+
add_filtered_installation_components() {
1010
local minimum_version=$1
1111
shift
1212
local tools_array=("$@")
1313

1414
for item in ${tools_array[@]}; do
15-
# take the last argument after spliting string by ';'' and '-''
15+
# take the last argument after splitting string by ';'' and '-''
1616
version=$(echo "${item##*[-;]}")
1717
if [[ "$(printf "${minimum_version}\n${version}\n" | sort -V | head -n1)" == "$minimum_version" ]]; then
1818
components+=($item)
@@ -96,11 +96,11 @@ echo "export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME" >> "${HOME}/.bashrc"
9696
echo "export ANDROID_NDK_LATEST_HOME=$ANDROID_NDK_LATEST_HOME" >> "${HOME}/.bashrc"
9797

9898
availablePlatforms=($($SDKMANAGER --list | grep "platforms;android-[0-9]" | cut -d"|" -f 1 | sort -u))
99-
add_filtered_instalaltion_components $android_platform "${availablePlatforms[@]}"
99+
add_filtered_installation_components $android_platform "${availablePlatforms[@]}"
100100

101101
allBuildTools=($($SDKMANAGER --list --include_obsolete | grep "build-tools;" | cut -d"|" -f 1 | sort -u))
102102
availableBuildTools=$(echo ${allBuildTools[@]//*rc[0-9]/})
103-
add_filtered_instalaltion_components $android_build_tool "${availableBuildTools[@]}"
103+
add_filtered_installation_components $android_build_tool "${availableBuildTools[@]}"
104104

105105
echo "y" | $SDKMANAGER ${components[@]}
106106

images/macos/scripts/build/install-aws-tools.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ echo "Installing aws..."
1010
awscliv2_pkg_path=$(download_with_retry "https://awscli.amazonaws.com/AWSCLIV2.pkg")
1111
sudo installer -pkg "$awscliv2_pkg_path" -target /
1212

13-
echo "Installing aws sam cli..."
14-
brew tap aws/tap
15-
brew_smart_install aws-sam-cli
13+
if ! is_BigSur; then
14+
echo "Installing aws sam cli..."
15+
brew tap aws/tap
16+
brew_smart_install aws-sam-cli
17+
fi
1618

1719
echo "Install aws cli session manager"
1820
brew install --cask session-manager-plugin

images/macos/scripts/build/install-common-utils.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ if is_Monterey; then
9595
echo "export PARALLELS_DMG_URL=$url" >> ${HOME}/.bashrc
9696
fi
9797

98-
# Install Azure DevOps extension for Azure Command Line Interface
99-
az extension add -n azure-devops
98+
if ! is_BigSur; then
99+
# Install Azure DevOps extension for Azure Command Line Interface
100+
az extension add -n azure-devops
101+
fi
100102

101103
# Invoke tests for all basic tools
102104
invoke_tests "BasicTools"

images/macos/scripts/build/install-git.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ brew_smart_install "git"
1111

1212
git config --global --add safe.directory "*"
1313

14-
echo "Installing Git LFS"
15-
brew_smart_install "git-lfs"
1614

17-
# Update global git config
18-
git lfs install
19-
# Update system git config
20-
sudo git lfs install --system
15+
if ! is_BigSur; then
16+
echo "Installing Git LFS"
17+
brew_smart_install "git-lfs"
18+
19+
# Update global git config
20+
git lfs install
21+
# Update system git config
22+
sudo git lfs install --system
23+
fi
2124

2225
echo "Disable all the Git help messages..."
2326
git config --global advice.pushUpdateRejected false

images/macos/scripts/build/install-openssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
fi
1919

2020
if ! is_Arm64; then
21-
# Most of buildsystems and scripts look up ssl here
21+
# Most of build systems and scripts look up ssl here
2222
ln -sf $(brew --cellar openssl@1.1)/1.1* /usr/local/opt/openssl
2323
fi
2424

0 commit comments

Comments
 (0)