Skip to content

Comments

Instance Export: Fix script signing#11

Merged
bigdogwillfeed merged 4 commits intomainfrom
fix-signing
Mar 5, 2025
Merged

Instance Export: Fix script signing#11
bigdogwillfeed merged 4 commits intomainfrom
fix-signing

Conversation

@bigdogwillfeed
Copy link
Member

The code signing certificate was out of date, but CI didn't tell us that signing wasn't working. So I made some changes to the signing script so that it fails if the resulting signature isn't valid. This requires the DevResultsRoot certificate to be a trusted root certificate, so I added that to the repository secrets and CI file as well. Then I created a new signing certificate and put that in the secrets and Google drive

You can see that CI works on https://github.com/DevResults/DevResultsTools/actions/runs/13662472413/job/38196556984 (and you can see other previous runs failed when not everything was correctly in place)

To test, you can download the artifact from the latest run, unzip it, and confirm the signature is valid with Get-AuthenticodeSignature .\InstanceExport.ps1. This will only return valid if you've also installed the DevResultsRoot certificate into your "trusted root certificates". The cer file is in google drive https://drive.google.com/file/d/1-0M8SW_Y-b4C2GPhe_OauTmwnBINop3T/view?usp=drive_link if you need it.

I also updated the README to point to the signed script (stored in a release) but that link will only be valid once we merge this and tag a new release -- there's not a good way to point to files in the most recent release (the best I can do is point to the latest release where folks can choose the file, but a direct link from the README seemed kinder)

Copy link
Contributor

@fredrodlima fredrodlima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for this enhancement here NG!

@bigdogwillfeed bigdogwillfeed merged commit 86fdfe5 into main Mar 5, 2025
1 check passed
@bigdogwillfeed bigdogwillfeed deleted the fix-signing branch March 5, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants