Skip to content

Deploy on push to main via GitHub OIDC instead of VOID_TOKEN#55

Merged
fengmk2 merged 1 commit into
mainfrom
feat/void-github-oidc-deploy
Jul 6, 2026
Merged

Deploy on push to main via GitHub OIDC instead of VOID_TOKEN#55
fengmk2 merged 1 commit into
mainfrom
feat/void-github-oidc-deploy

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jul 2, 2026

Copy link
Copy Markdown
Member

Bumps void to 0.10.5 and switches the push-to-main deploy workflow to the new GitHub OIDC flow: void deploy exchanges a short-lived OIDC token for a project-scoped deploy token, so the workflow no longer reads the long-lived VOID_TOKEN secret.

  • deploy.yml renamed to void-deploy.yml (the connection's authorized deploy workflow path) with permissions: id-token: write.
  • staging.yml (PR deploys) keeps VOID_TOKEN: the platform rejects the OIDC exchange for pull_request events, since PR runs execute untrusted code.

Both projects are connected via the org-shared installation (void github join + void github connect, executor github_actions, branch main, workflow void-deploy.yml), so this is safe to merge; the first push to main will do the OIDC-authenticated staging -> smoke -> prod -> smoke run.

@socket-security

socket-security Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedvoid@​0.10.5791009797100

View full report

@socket-security

socket-security Bot commented Jul 2, 2026

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm better-sqlite3 is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?npm/void@0.10.5npm/better-sqlite3@12.11.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/better-sqlite3@12.11.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm drizzle-orm is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?npm/void@0.10.5npm/drizzle-orm@0.45.2

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/drizzle-orm@0.45.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Bump void to 0.10.5, whose `void deploy` auto-exchanges a GitHub OIDC
token for a short-lived project-scoped deploy token when the workflow
grants id-token: write, so the push-to-main deploys no longer need the
long-lived VOID_TOKEN secret.

The Void platform only honors the exchange from a workflow file named
exactly .github/workflows/void-deploy.yml (the default; configurable
per connection since platform #212), so deploy.yml is renamed.
The PR staging deploy (staging.yml) keeps VOID_TOKEN: the platform
rejects the OIDC exchange for pull_request events since they run
untrusted code.

Do not merge before both projects are connected with
`void github connect <project> --repo voidzero-dev/pkg-pr-registry-bridge
--branch main --executor github_actions`, otherwise push-to-main deploys
fail the exchange with a 401.
@fengmk2 fengmk2 force-pushed the feat/void-github-oidc-deploy branch from bc9d194 to 7716a57 Compare July 6, 2026 02:16
@fengmk2 fengmk2 marked this pull request as ready for review July 6, 2026 02:47
@fengmk2 fengmk2 merged commit 65c8157 into main Jul 6, 2026
4 checks passed
@fengmk2 fengmk2 deleted the feat/void-github-oidc-deploy branch July 6, 2026 02:50
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