Repository: axodotdev/cargo-dist
Pull request #430 (2023-09-18 14:22:16)

fix(windows-sign): use proper github account name


Patch:
diff --git a/cargo-dist/templates/ci/github_ci.yml.j2 b/cargo-dist/templates/ci/github_ci.yml.j2
index 5e07fd82..ae1cb0b4 100644
--- a/cargo-dist/templates/ci/github_ci.yml.j2
+++ b/cargo-dist/templates/ci/github_ci.yml.j2
@@ -209,7 +209,7 @@ jobs:
           done
       # Sign the files
       - name: Sign Artifacts with CodeSignTool
-        uses: ssldotcom/esigner-codesign@develop
+        uses: sslcom/esigner-codesign@develop
         with:
           command: batch_sign
           username: ${{ secrets.SSLDOTCOM_USERNAME }}
@@ -218,7 +218,6 @@ jobs:
           totp_secret: ${{ secrets.SSLDOTCOM_TOTP_SECRET }}
           dir_path: ${{ env.SIGN_DIR_IN }}
           output_path: ${{ env.SIGN_DIR_OUT }}
-          # Set this to TEST for testing (sandbox) and PROD for production
           environment_name: {{%- if ssldotcom_windows_sign == "test" %}} TEST {{%- else %}} PROD {{%- endif %}}
       # Regenerate checksum files for things that have been signed
       - name: Regenerate Checksums


Test patch:
diff --git a/cargo-dist/tests/snapshots/axolotlsay_ssldotcom_windows_sign.snap b/cargo-dist/tests/snapshots/axolotlsay_ssldotcom_windows_sign.snap
index 835617e2..cfa6bd42 100644
--- a/cargo-dist/tests/snapshots/axolotlsay_ssldotcom_windows_sign.snap
+++ b/cargo-dist/tests/snapshots/axolotlsay_ssldotcom_windows_sign.snap
@@ -1445,7 +1445,7 @@ jobs:
           done
       # Sign the files
       - name: Sign Artifacts with CodeSignTool
-        uses: ssldotcom/esigner-codesign@develop
+        uses: sslcom/esigner-codesign@develop
         with:
           command: batch_sign
           username: ${{ secrets.SSLDOTCOM_USERNAME }}
@@ -1454,7 +1454,6 @@ jobs:
           totp_secret: ${{ secrets.SSLDOTCOM_TOTP_SECRET }}
           dir_path: ${{ env.SIGN_DIR_IN }}
           output_path: ${{ env.SIGN_DIR_OUT }}
-          # Set this to TEST for testing (sandbox) and PROD for production
           environment_name: TEST
       # Regenerate checksum files for things that have been signed
       - name: Regenerate Checksums
diff --git a/cargo-dist/tests/snapshots/axolotlsay_ssldotcom_windows_sign_prod.snap b/cargo-dist/tests/snapshots/axolotlsay_ssldotcom_windows_sign_prod.snap
index dd2d13eb..fc21ba4a 100644
--- a/cargo-dist/tests/snapshots/axolotlsay_ssldotcom_windows_sign_prod.snap
+++ b/cargo-dist/tests/snapshots/axolotlsay_ssldotcom_windows_sign_prod.snap
@@ -1445,7 +1445,7 @@ jobs:
           done
       # Sign the files
       - name: Sign Artifacts with CodeSignTool
-        uses: ssldotcom/esigner-codesign@develop
+        uses: sslcom/esigner-codesign@develop
         with:
           command: batch_sign
           username: ${{ secrets.SSLDOTCOM_USERNAME }}
@@ -1454,7 +1454,6 @@ jobs:
           totp_secret: ${{ secrets.SSLDOTCOM_TOTP_SECRET }}
           dir_path: ${{ env.SIGN_DIR_IN }}
           output_path: ${{ env.SIGN_DIR_OUT }}
-          # Set this to TEST for testing (sandbox) and PROD for production
           environment_name: PROD
       # Regenerate checksum files for things that have been signed
       - name: Regenerate Checksums