Skip to content

ci(windows): harden release workflow permissions and separate build and publish (#1076) - #1147

Open
Totopo27 wants to merge 1 commit into
Louis-CFM:mainfrom
Totopo27:fix/ci-windows-workflow-hardening
Open

Totopo27 wants to merge 1 commit into
Louis-CFM:mainfrom
Totopo27:fix/ci-windows-workflow-hardening

Conversation

@Totopo27

Copy link
Copy Markdown
Contributor

Resolves item 4 of #1076 (Windows CI release workflow hardening).

What was changed

  1. Least privilege workflow permissions: Set top-level \permissions: contents: read\ instead of \contents: write.
  2. Prevent credential persistence during dependency execution: Configured \�ctions/checkout@v7\ with \with: persist-credentials: false\ in the build job, preventing
    pm ci\ and dependencies from accessing or persisting git credentials on disk.
  3. Two-stage pipeline parity: Split .github/workflows/windows.yml\ into two isolated jobs matching \linux.yml:
    • \�uild: Runs packaging, tests, and version verification in read-only mode, uploading verified installers and binaries as workflow artifacts.
    • \publish: Runs only on \windows-v*\ release tags after a successful build, with scoped \permissions: contents: write\ to publish release assets without executing arbitrary dependency code.
  4. Pull request testing: Added \pull_request\ trigger for changes in \windows/**\ and .github/workflows/windows.yml\ so Windows builds are tested in CI before merge.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant