Try certutil.exe -csp "DigiCert Software Trust Manager KSP", forget yarn cache for now

This commit is contained in:
Pierre Jacquier
2025-04-10 16:25:12 -04:00
parent 3559df0c5e
commit ad333c2055

View File

@ -31,7 +31,8 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
cache: 'yarn' # Forget cache for now
# cache: 'yarn'
- run: yarn install - run: yarn install
@ -174,7 +175,8 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
cache: 'yarn' # Set this to npm, yarn or pnpm. # Forget cache for now
# cache: 'yarn' # Set this to npm, yarn or pnpm.
- name: yarn install - name: yarn install
# Windows is picky sometimes and fails on fetch. Step takes about ~30s # Windows is picky sometimes and fails on fetch. Step takes about ~30s
@ -188,6 +190,7 @@ jobs:
# The next two steps are from the official Digicert docs, available at # The next two steps are from the official Digicert docs, available at
# https://docs.digicert.com/en/digicert-keylocker/ci-cd-integrations/scripts/github/scripts-for-signing-using-ksp-library-on-github.html#ksp-signing-using-github-action-488726 # https://docs.digicert.com/en/digicert-keylocker/ci-cd-integrations/scripts/github/scripts-for-signing-using-ksp-library-on-github.html#ksp-signing-using-github-action-488726
# EXCEPT the `smksp_registrar.exe register` line # EXCEPT the `smksp_registrar.exe register` line
# EXCEPT the `certutil.exe -csp "DigiCert Software Trust Manager KSP" -key -user` line
- name: Prepare certificate and variables (Windows only) - name: Prepare certificate and variables (Windows only)
if: ${{ (env.IS_RELEASE == 'true' || env.IS_NIGHTLY == 'true') && matrix.os == 'windows-2022' }} if: ${{ (env.IS_RELEASE == 'true' || env.IS_NIGHTLY == 'true') && matrix.os == 'windows-2022' }}
run: | run: |
@ -212,7 +215,7 @@ jobs:
smksp_registrar.exe register smksp_registrar.exe register
smksp_registrar.exe list smksp_registrar.exe list
smctl.exe keypair ls smctl.exe keypair ls
C:\Windows\System32\certutil.exe -csp "DigiCert Signing Manager KSP" -key -user C:\Windows\System32\certutil.exe -csp "DigiCert Software Trust Manager KSP" -key -user
smksp_cert_sync.exe smksp_cert_sync.exe
shell: cmd shell: cmd