A publicly committed administrative key exposed an organization owner’s GitHub CLI token during the October LiteLLM compromise. The attacker then reached other engineers’ credentials and the release approval path. In a November 19 guide, Socket uses that sequence to put a specific question to teams shipping software with GitHub Actions: can the same stolen credential reach the people who approve a release?
The guide addresses maintainers with authorized access, stolen tokens and insiders. Those credentials can change workflows, approve a deployment or publish a package as an authenticated user. Socket’s test is blunt: “One account should never be enough.” Count independently protected credentials, not account names on an approval screen.
One key reached multiple accounts
Socket recounts a LiteLLM release path with branch protections and separate user accounts. A protected workflow edit was initially rejected; five seconds later a privileged credential overrode the protection. A different developer account approved the production release, and a third account later deleted workflow-run records. Socket attributes those actions to a cascading compromise that began with the exposed administrative key and passed through the owner’s GitHub CLI token. Audit protection overrides even when the branch rule initially rejects an edit.
This is the practical failure mode for an approval gate. Two usernames are still one point of failure if one administrator’s credential can obtain both tokens or edit the gate. A malicious maintainer can also push a workflow to a separate branch with an ordinary push trigger. A CODEOWNERS review on the default branch applies when a pull request reaches that branch; it cannot review a workflow that runs on the attacker’s branch before any pull request. The people affected are package maintainers and release teams whose GitHub identities bridge repository writes, CI jobs and registry publication.
GitHub separates token and deployment policy
Start with the credentials that can write .github/workflows/, approve a release and change repository rules. GitHub’s organization token-policy documentation places fine-grained and classic personal access tokens on separate policy tabs. Require approval for fine-grained tokens, restrict classic tokens that reach organization resources, and set lifetimes that match the task. Approval applies only to fine-grained tokens, and tokens created by organization owners do not need approval. GitHub also says SSH keys created through personal access tokens continue to work after a PAT access restriction, so inventory deploy and SSH keys as credentials in their own right.
Where required reviewers are available for the repository and plan, give the publish job a GitHub Environment with a required reviewer and Prevent self-review, then turn off Allow administrators to bypass configured protection rules. Restrict its deployment branches and tags to reviewed release references, and protect tag changes as well. GitHub’s environment reference says one of the listed reviewers is enough to approve a job; listing six is not a six-person vote. On Free, Pro and Team plans, required reviewers are available for public repositories, while deployment branch and tag restrictions also work for private repositories on Pro and Team. An administrator able to change the environment configuration still needs separate monitoring.
Socket recommends restricting workflow-file pushes with an organization-managed push ruleset for private or internal repositories, narrowing bypass rights, and protecting the actual default and release branches with pull-request review. Public repositories need alerts for unexpected workflow-file pushes because that push-ruleset control is limited to private and internal repositories. Monitor protected_branch.policy_override when a protected change is overridden and workflows.delete_workflow_run when someone deletes run evidence; export the records to a log store whose access is separate from the maintainer accounts.
npm publishing needs its own gate
Replacing a stored NPM_TOKEN with OpenID Connect removes a long-lived bearer token from CI. npm’s trusted-publisher documentation binds publishing to a specified repository and workflow; it says the binding also accepts an optional environment. A compromised workflow can still use its authorized publishing identity. The registry initially accepts traditional tokens and manual publishing alongside trusted publishing, so remove old tokens and inspect the package’s other publish routes.
For npm releases, Socket recommends staging the built tarball for human approval and configuring the trusted publisher for stage-only access. npm’s documentation says npm stage publish is always allowed for a trusted publisher, while permission for direct npm publish and dist-tag changes is selected separately. Keep build and publish in separate jobs so the job with id-token: write does not also execute project code. A maintainer approving the staged artifact must hold a credential separate from the one that can alter the build. For registries without a stage queue, put the publish job behind an independently controlled deployment approval.
Test the release authority chain
Choose one real release workflow and trace the people and credentials behind three operations: editing .github/workflows/, overriding branch or environment protections, and approving the specific artifact that ships. Rotate any exposed administrative key and the downstream credentials it reached. Remove retired deploy keys, restrict unnecessary classic PATs and move publish secrets out of repository-wide reach. Verify that a release job waits at the protected environment and that a CI identity configured for npm staging cannot publish directly. Check those states with the team that owns the registry; GitHub’s approval screen alone covers only its own gate.
Watch for a protected-branch override, a new deploy key or a deleted run in the organization’s records, then rehearse revoking the affected sessions, PATs, OAuth grants, keys and publisher bindings. Socket’s LiteLLM example is a useful tabletop test: if one credential reaches the approver, the approval setting needs another owner before the next release.