From 57ba4567be6803befbee06477f27c749d1c54490 Mon Sep 17 00:00:00 2001 From: vc-ci Date: Thu, 29 Feb 2024 10:35:50 +0000 Subject: [PATCH 1/3] 6.40.0 --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 96bf1d15..ce9247aa 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -7,7 +7,7 @@ VirtoCommerce - 6.39.0 + 6.40.0 $(VersionSuffix)-$(BuildNumber) From f462409714ecf52b97422c44b4ab7c8f929b1dca Mon Sep 17 00:00:00 2001 From: Andrew <56427313+AndrewEhlo@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:45:58 +0500 Subject: [PATCH 2/3] Vcst 488 (#675) feat: Update third party actions to node20 --- .github/workflows/deploy.yml | 15 ++++++++++++--- .github/workflows/main.yml | 4 ++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fd3f2286..8ffdbb1c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,6 +43,9 @@ jobs: if [ ${{ github.ref }} == 'refs/heads/master' ]; then echo "IS master branch" echo "APP=vcptcore-qa" >> $GITHUB_OUTPUT + elif [ ${{ github.ref }} == 'refs/heads/dev' ]; then + echo "IS dev branch" + echo "APP=vcst-dev" >> $GITHUB_OUTPUT fi - name: Read deployment config @@ -53,7 +56,7 @@ jobs: deployConfigPath: ${{ github.event.inputs.deployConfigPath }} - name: Start deployment - uses: bobheadxi/deployments@master + uses: VirtoCommerce/vc-github-actions/gh-deployments@master id: deployment with: step: start @@ -61,9 +64,15 @@ jobs: env: ${{ steps.deployConfig.outputs.environmentName }} no_override: false - - name: Update environment + - name: Update vcptcore-qa environment + if: ${{ github.ref == 'refs/heads/master' }} run: | vc-build CloudEnvSetParameter -EnvironmentName ${{ steps.app-name.outputs.APP }} -CloudToken ${{ secrets.VCPTCORE_PLATFORM_TOKEN }} -HelmParameters storefront.image.tag=${{ github.event.inputs.artifactUrl }} + + - name: Update vcst-dev environment + if: ${{ github.ref == 'refs/heads/dev' }} + run: | + vc-build CloudEnvSetParameter -EnvironmentName ${{ steps.app-name.outputs.APP }} -CloudToken ${{ secrets.VCST_PLATFORM_TOKEN }} -HelmParameters storefront.image.tag=${{ github.event.inputs.artifactUrl }} - name: DEPLOY_STATE::successful if: success() @@ -74,7 +83,7 @@ jobs: run: echo "DEPLOY_STATE=failed" >> $GITHUB_ENV - name: Update GitHub deployment status - uses: bobheadxi/deployments@master + uses: VirtoCommerce/vc-github-actions/gh-deployments@master if: always() with: step: finish diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c69d230..537c2eb4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -150,9 +150,9 @@ jobs: - name: Docker Login if: ${{ env.BUILD_DOCKER == 'true' }} - uses: azure/docker-login@v1 + uses: docker/login-action@v3 with: - login-server: ${{ env.PACKAGE_SERVER }} + registry: ${{ env.PACKAGE_SERVER }} username: $GITHUB_ACTOR password: ${{ secrets.GITHUB_TOKEN }} From a6af167f3c3ecbc115810134060f24f9b48be1dd Mon Sep 17 00:00:00 2001 From: Konstantin Savosteev Date: Fri, 1 Mar 2024 12:04:48 +0200 Subject: [PATCH 3/3] VCST-114: add proxy for /token endpoints (#673) Co-authored-by: Elena Mutykova <56412054+Lenajava1@users.noreply.github.com> --- .../Infrastructure/Autorest/UserPasswordAuthHandler.cs | 2 +- VirtoCommerce.Storefront/Startup.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VirtoCommerce.Storefront/Infrastructure/Autorest/UserPasswordAuthHandler.cs b/VirtoCommerce.Storefront/Infrastructure/Autorest/UserPasswordAuthHandler.cs index ed0b8a08..465f10a5 100644 --- a/VirtoCommerce.Storefront/Infrastructure/Autorest/UserPasswordAuthHandler.cs +++ b/VirtoCommerce.Storefront/Infrastructure/Autorest/UserPasswordAuthHandler.cs @@ -67,7 +67,7 @@ protected override async Task SendAsync(HttpRequestMessage protected override async Task AddAuthenticationAsync(HttpRequestMessage request) { - if (!request.Headers.Contains("Authorization") && !request.RequestUri.AbsoluteUri.Contains("/connect/token")) + if (!request.Headers.Contains("Authorization") && !request.RequestUri.AbsoluteUri.EndsWith("/token")) { request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", await GetOrRenewTokenAsync()); } diff --git a/VirtoCommerce.Storefront/Startup.cs b/VirtoCommerce.Storefront/Startup.cs index ba7d50b7..2ccbbcd3 100644 --- a/VirtoCommerce.Storefront/Startup.cs +++ b/VirtoCommerce.Storefront/Startup.cs @@ -439,7 +439,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) })); app.UseWhen( - context => context.Request.Path.Value.EndsWith("connect/token"), + context => context.Request.Path.Value.EndsWith("/token"), appInner => appInner .RunProxy(context => context .ForwardTo(platformEndpointOptions.Url)