Skip to content

Commit

Permalink
chore: add a step to save the new cert to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
cprice404 committed Mar 26, 2024
1 parent f289614 commit afc3096
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cert-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ jobs:
id: thing_on
run: |
echo "hi"
- name: Write client auth certificate file
id: write_client_auth_cert
env:
CLIENT_AUTH_CERT_BASE64_CONTENT: ${{ secrets.CODE_SIGNING_CERT_BASE64 }}
run: |
$p12Path = "cert.p12";
$encodedBytes = [System.Convert]::FromBase64String($env:CLIENT_AUTH_CERT_BASE64_CONTENT);
Set-Content $pfxPath -Value $encodedBytes -AsByteStream;
echo "::set-output name=p12_path::$p12Path";

0 comments on commit afc3096

Please sign in to comment.