Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@constructive-io/static-site-deploy

Latest version: v0.3.5

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: phatg, pyramation, zetazz
0 Stars
1 Forks
9 Versions
967 Downloads
TypeScript Repo language

Scan summary

@constructive-io/static-site-deploy was last scanned on 27 Nov 2026 at version 0.3.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 9 versions; the latest 5 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.3.5.
  • Downloads: 967 downloads.

Versions

9 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.5 LATEST 27 Nov 2026 No rules fired
0.3.4 27 Nov 2026 No rules fired
0.3.3 27 Nov 2026 No rules fired
0.3.2 26 Nov 2026 Not shown
0.3.1 25 Nov 2026 Not shown

No rules fired in 0.3.5

Findings

Findings for v0.3.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Static site deploy

@constructive-io/static-site-deploy deploys an existing static export to a dedicated S3 bucket behind CloudFront. It does not provide hosting, build the site, or change a site's DNS.

Local deploy

From a site repo with AWS CLI, curl, and the package installed:

pnpm exec static-site-deploy setup --site OWNER/REPO
pnpm build
pnpm exec static-site-deploy deploy --site OWNER/REPO --dir out

The setup asks only for missing settings. A local deploy from an interactive terminal also asks for missing settings, saves the answers, and continues. AWS credentials stay in AWS CLI configuration; the per-site appstash store contains only the bucket, distribution, homepage URL, region, and profile name. No .env file is needed. Use a named AWS profile if you deploy from multiple accounts.

Shell variables take precedence over saved values: AWS_S3_BUCKET, AWS_CLOUDFRONT_DISTRIBUTION_ID, SITE_URL (HTTPS), AWS_REGION, and AWS_PROFILE. Provisioning is optional and has a separate confirmation; automatic prompting during a deploy never provisions anything. To validate inputs without building or deploying, use static-site-deploy check --site OWNER/REPO.

Deploy uploads the export, refreshes extensionless aliases, and waits for CloudFront invalidation. Only after the public homepage returns HTTP 200 with HTML and the bucket listing is complete does it prune keys absent from the export and its aliases, including stale pages and old assets. A final invalidation follows deletion. Use a dedicated bucket, and serialize deployments, including local ones.

By default, existing Markdown files (*.md) and the root llms.txt are preserved when absent from the export. Repeat --preserve PATTERN to replace that list with a site-specific list. Patterns match full keys, with * matching any number of characters, including slashes.

Per-site deploy options:

  • --dry-run lists planned uploads, alias copies, and stale-key deletions. It needs read-only access to list the bucket, but does not upload, delete, invalidate CloudFront, check the homepage, or save answers to prompts.
  • --trailing-slash-aliases adds foo/ alongside foo for foo/index.html. The default creates only foo; neither mode creates an alias for the root index.html.
  • --verify-homepage also requires the HTTP 200 HTML response body to match the export's index.html byte for byte before pruning. Use it when CloudFront serves the export without modifying the response body.

GitHub Actions and AWS OIDC

Run setup with AWS CLI v2 signed into the account that owns the bucket and distribution, gh signed in as a repository administrator, and jq and Bash installed. The AWS identity needs IAM permissions to manage the GitHub OIDC provider, the dedicated role, and its inline policy.

pnpm exec static-site-deploy setup --site OWNER/REPO --provision --reviewer LOGIN \
  --account-id 000000000000 --role-name example-site-deploy --dry-run

Replace the placeholders. --reviewer is optional; omit it to leave any existing reviewer settings alone. --dry-run prints a fresh-setup plan and does not change AWS, GitHub, or stored values. Remove it to apply; with inputs supplied through variables, --provision --yes also supports unattended provisioning. Use a separate role for each site. Sites in the same AWS account reuse the GitHub OIDC provider, not the role or credentials. Do not share or store AWS access keys in GitHub or in appstash.

Provisioning creates or reuses the IAM provider, sets an exact AWS audience and subject for the repository's production environment and refs/heads/main (or --branch), and restricts permissions to the selected S3 bucket and CloudFront distribution. It sets the GitHub repository-wide OIDC template to ["repo","context","ref"]; check for other OIDC integrations before applying. Repositories that use immutable OIDC subjects keep them, and the role trusts the subject GitHub reports, such as repo:OWNER@OWNER-ID/REPO@REPO-ID:environment:production:ref:refs/heads/main. It sets production environment variables for the deployment targets, region, homepage, and role ARN. It never dispatches a deployment.

If GitHub rejects the reviewer because the billing plan does not support required reviewers, setup retries without setting a reviewer. Setup warns if the production environment has no required reviewer and still restricts it to the configured branch. Setup requests that GitHub disable administrator bypass and stops before changing IAM trust if GitHub does not confirm it is disabled. If the environment is deleted, revoke AWS role trust until the environment and its protections are restored.

Use workflow_dispatch to start manually. Build in an unprivileged job, then use a separate production job with contents: read and id-token: write and the build artifact. In that job, configure AWS OIDC credentials with aws-actions/configure-aws-credentials using vars.AWS_DEPLOY_ROLE_ARN and vars.AWS_REGION. Pass AWS_S3_BUCKET, AWS_CLOUDFRONT_DISTRIBUTION_ID, SITE_URL, and AWS_REGION from vars to static-site-deploy deploy. On GitHub Actions, the repo is inferred from GITHUB_REPOSITORY. CI never reads the local store or prompts; missing or invalid configuration fails before uploads.


Development

Setup
  1. Clone the repository:
git clone https://github.com/constructive-io/dev-utils.git
  1. Install dependencies:
cd dev-utils
pnpm install
pnpm build
  1. Test the package of interest:
cd packages/<packagename>
pnpm test:watch

Credits

🛠 Built by the Constructive team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on GitHub.

Disclaimer

AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.

No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @constructive-io/static-site-deploy

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229