Skip to content

Commit

Permalink
ci: debug
Browse files Browse the repository at this point in the history
Add a sha256 output of the base64 decoded certificate for debug purposes

Do
`pass Qa/Nokler_og_sertifikater/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment/key | base64 -D | sha256sum`
on the local machine to check for a match
  • Loading branch information
hernil committed Dec 10, 2024
1 parent b5e5a31 commit 2b50ea1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
run: dotnet restore
- name: Decode certificate
run: echo -n $(echo ${{ secrets.ENCODED_SMOKE_TEST_CERTIFICATE }}) | base64 -d > $(echo ${GITHUB_WORKSPACE})/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12
- name: checksum p12 (for debug-purposes)
run: sha256sum $(echo ${GITHUB_WORKSPACE})/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12
- name: Set certificate path
run: dotnet user-secrets set Certificate:Path:Absolute $(echo ${GITHUB_WORKSPACE})/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12 --project Digipost.Signature.Api.Client.Core
- name: Set certificate password
Expand Down

0 comments on commit 2b50ea1

Please sign in to comment.