1
0
forked from adalal/openxer

Add SignPath code signing policy and release signing hooks

This commit is contained in:
OpenXER Maintainers
2026-11-25 18:38:03 -06:00
parent 70271deede
commit 9aef65d3ba
3 changed files with 84 additions and 4 deletions

View File

@@ -16,6 +16,8 @@ jobs:
build-windows:
name: Build Windows installer and portable zip
runs-on: windows-latest
env:
SIGNPATH_ENABLED: ${{ secrets.SIGNPATH_API_TOKEN != '' }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
@@ -29,15 +31,60 @@ jobs:
if (-not $iscc -and -not (Test-Path 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe')) {
choco install innosetup -y --no-progress
}
- name: Build packaged executables and Setup installer
- name: Read workspace version
shell: pwsh
run: |
$ver = (Select-String -Path Cargo.toml -Pattern '^version\s*=\s*"([^"]+)"').Matches[0].Groups[1].Value
echo "VERSION=$ver" >> $env:GITHUB_ENV
python desktop/build_release.py --output dist/OpenXER.exe --installer --installer-output release-assets
- name: Build packaged Windows executables
shell: pwsh
run: |
python desktop/build_release.py --output dist/OpenXER.exe
- name: Upload unsigned executables for SignPath
if: env.SIGNPATH_ENABLED == 'true'
id: upload-unsigned-exes
uses: actions/upload-artifact@v4
with:
name: unsigned-windows-exes
path: |
dist/OpenXER.exe
dist/openxer-cli.exe
- name: Sign Windows executables with SignPath
if: env.SIGNPATH_ENABLED == 'true'
uses: signpath/github-action-submit-signing-request@v3
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ secrets.SIGNPATH_ORG_ID }}
project-slug: 'openxer'
signing-policy-slug: 'release-signing'
github-artifact-id: ${{ steps.upload-unsigned-exes.outputs.artifact-id }}
wait-for-completion: true
output-artifact-directory: 'dist'
- name: Build portable zip and Inno Setup installer
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path release-assets | Out-Null
Compress-Archive -Path dist/* -DestinationPath "release-assets/OpenXER-$ver-windows-x64.zip" -Force
python desktop/build_release.py --package-only --output dist/OpenXER.exe --installer --installer-output release-assets
Compress-Archive -Path dist/* -DestinationPath "release-assets/OpenXER-$env:VERSION-windows-x64.zip" -Force
Get-ChildItem release-assets
- name: Upload unsigned installer for SignPath
if: env.SIGNPATH_ENABLED == 'true'
id: upload-unsigned-installer
uses: actions/upload-artifact@v4
with:
name: unsigned-windows-installer
path: release-assets/OpenXER-*-setup.exe
- name: Sign Windows installer with SignPath
if: env.SIGNPATH_ENABLED == 'true'
uses: signpath/github-action-submit-signing-request@v3
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ secrets.SIGNPATH_ORG_ID }}
project-slug: 'openxer'
signing-policy-slug: 'release-signing'
github-artifact-id: ${{ steps.upload-unsigned-installer.outputs.artifact-id }}
wait-for-completion: true
output-artifact-directory: 'release-assets'
- uses: actions/upload-artifact@v4
with:
name: release-windows

31
CODE_SIGNING_POLICY.md Normal file
View File

@@ -0,0 +1,31 @@
# Code Signing Policy
Free code signing provided by [SignPath.io](https://about.signpath.io/), certificate by [SignPath Foundation](https://signpath.org/).
## Scope
This policy covers the official Windows binaries published on the [GitHub Releases](https://github.com/OpenXER/openxer/releases) page of `https://github.com/OpenXER/openxer`:
- `OpenXER.exe` (desktop application)
- `openxer-cli.exe` (command-line interface and MCP server)
- `OpenXER-<version>-setup.exe` (Windows installer)
All signed binaries are built exclusively from this public repository on GitHub-hosted runners (`windows-latest`) through [.github/workflows/release.yml](.github/workflows/release.yml). Third-party dependencies keep their own licenses and notices as documented in [THIRD_PARTY.md](THIRD_PARTY.md).
## Team roles
- **Approvers:** `@clachance14` (repository owner; approves signing requests for tagged releases, with two-factor authentication enabled on GitHub)
- **Reviewers:** `@clachance14` (reviews pull requests from external contributors before merge into `main`)
- **Committers:** `@clachance14` (maintainers with write access to `OpenXER/openxer`)
## Privacy policy
OpenXER runs locally and offline on the user's computer. This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it:
- OpenXER includes no telemetry, analytics, crash uploaders or license checks.
- Schedule files and workspace databases stay on the user's local disk.
- Network requests occur only when the user explicitly enables the built-in AI Chat feature with Sign in with ChatGPT or a user-configured external API endpoint, in which case chat prompts and the schedule data requested by its tools are sent only to that chosen provider. Using local models or offline scheduling sends no data off the computer.
## Reporting security issues
Please report security issues privately following [SECURITY.md](SECURITY.md).

View File

@@ -303,12 +303,14 @@ Some tests compare against real schedules that cannot be published. They read th
## Contributing and roadmap
See [CONTRIBUTING.md](CONTRIBUTING.md) and [ROADMAP.md](ROADMAP.md). AI coding agents should read [AGENTS.md](AGENTS.md) first.
See [CONTRIBUTING.md](CONTRIBUTING.md), [ROADMAP.md](ROADMAP.md) and [CODE_SIGNING_POLICY.md](CODE_SIGNING_POLICY.md). AI coding agents should read [AGENTS.md](AGENTS.md) first.
## About
OpenXER is an independent project. It is not affiliated with, endorsed by or sponsored by any scheduling software vendor. XER is a schedule interchange file format; product and company names belong to their owners.
Free code signing provided by [SignPath.io](https://about.signpath.io/), certificate by [SignPath Foundation](https://signpath.org/) (see [CODE_SIGNING_POLICY.md](CODE_SIGNING_POLICY.md)).
## License
Licensed under either of