-
Notifications
You must be signed in to change notification settings - Fork 130
IEP-1475: Signing Windows Executable #1228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
826dfc7
200eee5
914f938
543756a
5c69473
8116925
f10e08f
47bcd01
70b422f
cdfaf07
baeea69
ff20f32
09a227b
e1ae050
94b1f30
c27f9ba
e8d43f4
9a8b624
f1aead4
c7a227e
eb83701
6b008a8
38f2739
6a0e72f
7024921
28fd1f0
b018315
40e11f5
c7097fe
a292776
8a7b021
4327e23
b17abfe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Signing Windows Executable test workflow | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
signing: | ||
runs-on: windows-latest | ||
env: | ||
JKS_B64: ${{ secrets.JARSIGNER_REL_KEYSTORE_B64 }} | ||
JKS_PASS: ${{ secrets.JARSIGNER_REL_STOREPASS }} | ||
ALIAS: ${{ secrets.JARSIGNER_REL_ALIAS }} | ||
PFX_PASS: ${{ secrets.JARSIGNER_REL_STOREPASS }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
||
- name: Decode base64-encoded JKS | ||
run: | | ||
echo "$env:JKS_B64" | Out-File -FilePath encoded.b64 -Encoding ASCII | ||
certutil -decode encoded.b64 mykeystore.jks | ||
Remove-Item encoded.b64 | ||
|
||
- name: Convert JKS to PFX | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add Java setup action steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v4
+ - name: Set up Java
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'temurin'
+ java-version: '11'
🧰 Tools🪛 actionlint (1.7.7)19-19: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🪛 YAMLlint (1.37.1)[error] 21-21: trailing spaces (trailing-spaces) 🤖 Prompt for AI Agents
|
||
shell: pwsh | ||
run: | | ||
& "${env:JAVA_HOME}\bin\keytool.exe" -importkeystore ` | ||
-srckeystore mykeystore.jks ` | ||
-srcstorepass $env:JKS_PASS ` | ||
-srcalias $env:ALIAS ` | ||
-destkeystore cert.pfx ` | ||
-deststoretype PKCS12 ` | ||
-deststorepass $env:PFX_PASS | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Secure handling of keystore & error checking
🤖 Prompt for AI Agents
|
||
|
||
- name: Sign Windows Executable | ||
run: | | ||
& "C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe" sign ` | ||
/f cert.pfx ` | ||
/p $env:PFX_PASS ` | ||
/tr http://timestamp.digicert.com ` | ||
/td sha256 ` | ||
/fd sha256 ` | ||
releng/espressif-ide.exe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Specify shell & avoid hardcoded SDK path
🤖 Prompt for AI Agents
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Update checkout action version
Actionlint flags
actions/checkout@v3
as outdated. Bump to the latest major version:This ensures you get the newest bug fixes and performance improvements.
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.7)
19-19: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents