github-actions
Audited by Socket on Sep 1, 2026
2 alerts found:
AnomalySecurityThe workflow fragment itself contains no explicit malicious code, but it executes a repository-provided deployment script (./scripts/deploy.sh) without the script content being available for verification. The workflow also uses an unsafe secret-handling pattern by defining a token-like value directly in YAML, and it contains a comment suppressing a CI/CD security check. Together, these factors increase risk that the deployment path could perform unintended or harmful actions, though malware cannot be confirmed from this fragment alone.
No explicit malware is present in the snippet itself, but the workflow configuration is structurally high risk. The combination of pull_request_target, write-all permissions, checkout of PR head code, and subsequent execution of a local deploy script after configuring AWS credentials can allow attacker-controlled PR code to run with sensitive credentials and broad token capabilities. The commit-message echo is a minor log-injection/misleading-log concern. The deployed script (deploy.sh) should be assumed potentially attacker-influenced under this trigger pattern until proven otherwise.