Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.26k stars 753 forks source link

Update assemblies due to security issues #15644

Closed StephenWeatherford closed 21 hours ago

StephenWeatherford commented 1 day ago
Microsoft Reviewers: Open in CodeFlow
github-actions[bot] commented 1 day ago

Test this change out locally with the following install scripts (Action run 11939773071)

VSCode - Mac/Linux ```sh bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 11939773071 ``` - Windows ```powershell iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 11939773071" ```
Azure CLI - Mac/Linux ```sh bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 11939773071 ``` - Windows ```powershell iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 11939773071" ```
github-actions[bot] commented 1 day ago

Dotnet Test Results

    78 files   -     39      78 suites   - 39   29m 13s ⏱️ - 15m 37s 11 415 tests  -     25  11 415 ✅  -     24  0 💤 ±0  0 ❌  - 1  26 561 runs   - 13 276  26 561 ✅  - 13 275  0 💤 ±0  0 ❌  - 1 

Results for commit beb9a99d. ± Comparison against base commit cd32858d.

This pull request removes 1842 and adds 630 tests. Note that renamed tests count towards both. ``` nestedProp1: 1 nestedProp2: 2 prop1: true prop2: false 1 2 \$'") prop1: true prop2: false … ``` ``` Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000 �Ի �0\u0014\u0006��>E�\u0003��' \u001d\u0004\u0007+R\u0005�U� X�U� \u0005_�t\u0010�\u0016�^\u0004�Ɂ�$�\u0007\u0006{]��NLQBA� �\u001b�\u0004c�� �$�� \u0001$��\u0000xux��.l+c�����t�f&Ē\u0012L��\u001c •Plf��]{x��uu �<15����)Ϻʧ������=ѷ�#€�\u0001X2"��\u0000 .���(����?�(>.���9�b�� E�\u0003��O\u0015��\u0008.>@lO��Z� \u0005��M\u0007qiq�`�1w��%�0ڛv\u000b&�چ��8 �؈���]�P�\u0011�o\u0004\u0011-\u0015E\u0008��W��n\u001bS�R���\u0007�\u0018�&/ ��3�bť{\u0006\s%W.�\u000e��\u001aW�9'y�A\u001b^��ҋ����� ���t-�6��\u000b��\u0000�\u0005�RsD�T.\u001b�2�>�\u000f\u001c\u001cJh+H\u001b�vP\u001c�\u000e6�d�\u0016�K��y��M�\u0005k�m\u0018\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000 ��K\u000e� \u0010\u0006`֞�'���\u00186ݻ� D��H�iilb��ta⢍�ښȷ��0@~��\�-ݡlZn$ڜ����(5:?\u0000 \u000c�E0AZ��Y?{'#�6�&���Y?\u0008m�©*\u000b ���H� X�\u0014nbm?Y���±����7��m� �Ԇ�/��z��o=ѧ�\u000b�\u000c\u0014\u0001)$M2�?�b�\u0017�����X��$I�d O\u0013���\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003�Խ �0\u0010\u0000��>E�\u0003�$M�V��"��\u0000�=�bki#\u0004�w7\u001dĥť?�����]8��z��\u0016t\u000eMKB*�5Ac�N$D�{� ��z��*)\u0015B؎�I�{kt�Z���\u000f�1֦(!e*��R2\u0012JNE�W.� �X�km�iQ�`ɥ�U]z9���7�\u0001��MW����P w\u0003�\u0012\ w\u000bh$#��g��?��\u0007\u000e\u000e\u0015�\u001a2\u0003�\u000e�#4�\u0006�����ҽy��y�y\u0001nE�\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003��� �0\u000c\u0000��}�>A�t�\u001dv��+\u0014\u001d��:�\u000f\u000e�w7;\u0008\u001e6��M�ߡ����42ڹ~[�CQ72V&�$�M��h�~�\u0006\u0001�\u0002e��\u0000����\u0011]Ӻ�[Y��\u000fҩp��,r��F�\u001a�$�Lt�l8��������w�⫛���CB9���C�Q���V�O��\u001f\u0004�,ZҖ(��G>A,�������\u001d\u0004A\u0010\u0004kx\u0002 ��#\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003���\u000b�0\u0014\u0007��+�?`no���C�!#,\u0008���A\u0006Z���?��3�\u000e��\u001b�Ƿ�\u0013���\u0000*9Hnv\u0001��L�G�����F�q��V��a\u0017�\u000b�l�g�,˲��\u0002�Y2\u0011\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.") Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Repository_not_found_in_registry (ArtifactRegistryAddress { RegistryAddress = mcr.microsoft.com, RepositoryPath = unknown/path/az, ExtensionVersion = 0.0.0-placeholder },Azure.RequestFailedException: The artifact does not exist in the registry. at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 138,[(BCP192, Error, Unable to restore the artifact with reference "br:mcr.microsoft.com/unknown/path/az:0.0.0-placeholder": The artifact does not exist in the registry.)]) Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Repository_not_found_in_registry (ArtifactRegistryAddress { RegistryAddress = mcr.microsoft.com, RepositoryPath = unknown/path/az, ExtensionVersion = 0.0.0-placeholder },Azure.RequestFailedException: The artifact does not exist in the registry. at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 138,[(BCP192, Error, Unable to restore the artifact with reference "br:mcr.microsoft.com/unknown/path/az:0.0.0-placeholder": The artifact does not exist in the registry.)]) Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Repository_not_found_in_registry (ArtifactRegistryAddress { RegistryAddress = unknown.registry.azurecr.io, RepositoryPath = bicep/extensions/az, ExtensionVersion = 0.0.0-placeholder },System.AggregateException: Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.<>c__DisplayClass4_0.<g__DownloadManifestInternalAsync|0>d.MoveNext() in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 44 --- End of stack trace from previous location --- at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, IOciArtifactReference artifactReference) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 51 at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.<>c__DisplayClass4_0.<g__DownloadManifestInternalAsync|0>d.MoveNext() in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 44 --- End of stack trace from previous location --- at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, IOciArtifactReference artifactReference) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/AzureContainerRegistryManager.cs:line 63 at Bicep.Core.Registry.OciArtifactRegistry.TryRestoreArtifactAsync(RootConfiguration configuration, OciArtifactReference reference) in /home/runner/work/bicep/bicep/src/Bicep.Core/Registry/OciArtifactRegistry.cs:line 499,[(BCP192, Error, Unable to restore the artifact with reference "br:unknown.registry.azurecr.io/bicep/extensions/az:0.0.0-placeholder": Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)))]) Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Repository_not_found_in_registry (ArtifactRegistryAddress { RegistryAddress = unknown.registry.azurecr.io, RepositoryPath = bicep/extensions/az, ExtensionVersion = 0.0.0-placeholder },System.AggregateException: Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.<>c__DisplayClass4_0.<g__DownloadManifestInternalAsync|0>d.MoveNext() in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 44 --- End of stack trace from previous location --- at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, IOciArtifactReference artifactReference) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 51 at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAndLayersAsync(IOciArtifactReference artifactReference, ContainerRegistryContentClient client) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 138 at Bicep.Core.Registry.AzureContainerRegistryManager.<>c__DisplayClass4_0.<g__DownloadManifestInternalAsync|0>d.MoveNext() in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 44 --- End of stack trace from previous location --- at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, IOciArtifactReference artifactReference) in D:\a\bicep\bicep\src\Bicep.Core\Registry\AzureContainerRegistryManager.cs:line 63 at Bicep.Core.Registry.OciArtifactRegistry.TryRestoreArtifactAsync(RootConfiguration configuration, OciArtifactReference reference) in D:\a\bicep\bicep\src\Bicep.Core\Registry\OciArtifactRegistry.cs:line 499,[(BCP192, Error, Unable to restore the artifact with reference "br:unknown.registry.azurecr.io/bicep/extensions/az:0.0.0-placeholder": Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)) (No such host is known. (unknown.registry.azurecr.io:443)))]) … ```