Skip to content

Fix Security, CI/CD, and Reliability Issues in v4 - #206

Open
malakasaray-del wants to merge 2 commits into
Squads-Protocol:mainfrom
malakasaray-del:malakasaray-del-patch-1
Open

malakasaray-del wants to merge 2 commits into
Squads-Protocol:mainfrom
malakasaray-del:malakasaray-del-patch-1

Conversation

@malakasaray-del

Copy link
Copy Markdown

Description

This PR addresses all High and Medium severity findings from the Squads Protocol Repository Audit for the v4 on-chain program and its deployment workflows.

Resolved Audit Findings:

V4R-1 (High - Web3 Security): Replaced an unchecked .unwrap() call in spending_limit_use.rs with .ok_or(MultisigError::MissingAccount)? to prevent the program from panicking when the optional mint account is omitted.

V4R-2 (High - Numeric Safety): Eliminated four potential panic paths in spending_limit_use.rs involving period resets and checked arithmetic to bubble up typed program errors.

V4R-3 (High - CI/CD Secret Exposure): Secured check-staging-deployer-balance.yaml by migrating to pull_request_target on the base commit, ensuring staging secrets are not leaked to untrusted pull request code.

V4R-4 (Medium - Secrets Management): Prevented key material from lingering in the workspace by utilizing $RUNNER_TEMP, chmod 600, and trap cleanup mechanisms.

V4R-5 & V4R-7 (Medium - Supply Chain & Build Robustness): Hardened composite actions and reusable workflows, including secure toolchain installations and proper environment variable quoting.

Description

This PR addresses all High and Medium severity findings from the Squads Protocol Repository Audit for the v4 on-chain program and its deployment workflows.   

Resolved Audit Findings:

V4R-1 (High - Web3 Security): Replaced an unchecked .unwrap() call in spending_limit_use.rs with .ok_or(MultisigError::MissingAccount)? to prevent the program from panicking when the optional mint account is omitted.   

V4R-2 (High - Numeric Safety): Eliminated four potential panic paths in spending_limit_use.rs involving period resets and checked arithmetic to bubble up typed program errors.   

V4R-3 (High - CI/CD Secret Exposure): Secured check-staging-deployer-balance.yaml by migrating to pull_request_target on the base commit, ensuring staging secrets are not leaked to untrusted pull request code.

V4R-4 (Medium - Secrets Management): Prevented key material from lingering in the workspace by utilizing $RUNNER_TEMP, chmod 600, and trap cleanup mechanisms.

V4R-5 & V4R-7 (Medium - Supply Chain & Build Robustness): Hardened composite actions and reusable workflows, including secure toolchain installations and proper environment variable quoting.
@vercel

vercel Bot commented Oct 28, 2026

Copy link
Copy Markdown

@malakasaray-del is attempting to deploy a commit to the squads Team on Vercel.

A member of the Team first needs to authorize it.

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