{"id":30652873,"url":"https://github.com/daaru00/serverless-plugin-static-website","last_synced_at":"2026-06-22T02:31:39.399Z","repository":{"id":34300852,"uuid":"176091585","full_name":"daaru00/serverless-plugin-static-website","owner":"daaru00","description":"Serverless plugin to easily deploy a static website frontend","archived":false,"fork":false,"pushed_at":"2022-02-12T21:34:20.000Z","size":93,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-31T07:17:37.634Z","etag":null,"topics":["aws","s3","serverless","static-site"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daaru00.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-17T11:28:55.000Z","updated_at":"2024-03-12T22:31:57.000Z","dependencies_parsed_at":"2022-08-08T00:15:47.970Z","dependency_job_id":null,"html_url":"https://github.com/daaru00/serverless-plugin-static-website","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daaru00/serverless-plugin-static-website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaru00%2Fserverless-plugin-static-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaru00%2Fserverless-plugin-static-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaru00%2Fserverless-plugin-static-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaru00%2Fserverless-plugin-static-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daaru00","download_url":"https://codeload.github.com/daaru00/serverless-plugin-static-website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaru00%2Fserverless-plugin-static-website/sbom","scorecard":{"id":316199,"data":{"date":"2025-08-11","repo":{"name":"github.com/daaru00/serverless-plugin-static-website","commit":"19e2da301c420ac3027a5b2112d87fd7d2f080fb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T00:13:54.773Z","repository_id":34300852,"created_at":"2025-08-18T00:13:54.773Z","updated_at":"2025-08-18T00:13:54.773Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34632531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","s3","serverless","static-site"],"created_at":"2025-08-31T07:11:25.451Z","updated_at":"2026-06-22T02:31:39.394Z","avatar_url":"https://github.com/daaru00.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Static Website\n\n[![npm](https://img.shields.io/npm/v/serverless-plugin-static-website.svg)](https://www.npmjs.com/package/serverless-plugin-static-website)\n\nA [serverless](https://serverless.com) plugin to create an S3 bucket to hosting your static website, it will automatically set public permissions and provide a specific deploy command.\n\n## Usage\n\n### Installation\n\n```bash\n$ npm install serverless-plugin-static-website --save-dev\n```\nor using yarn\n```bash\n$ yarn add serverless-plugin-static-website\n```\n\n### Configuration\n\n```yaml\nplugins:\n  - serverless-plugin-static-website\n\ncustom:\n  frontend: \n    bucket: ${self:service}-${self:provider.stage} # Provide a bucket name\n    dir: './frontend' # Set frontend directory to publish\n    cacheControl: '31536000' # Set max-age cache control, default: 31536000\n    deploy: 'sync' # Set deploy strategy to cp (upload every time all files), or sync (upload only newer files), default: sync\n```\n\n## CloudFront\n\nIf you want to enable CloudFront distribution in front of S3 bucket add `cdn` configurations to `custom.frontend` key:\n\n```yaml\ncustom:\n  frontend: \n    # ...frontend configuration..\n    cdn: \n      enabled: true\n      aliases: # Set aliases, default empty (default CloudFront domain)\n       - www.mywebsite.com\n      priceClass: PriceClass_All # Set price class, default: PriceClass_100\n      certificate: 'arn:aws:acm:region:account-id:certificate/certificate-id' # Set custom certificate\n```\n\n### Website information\n\nAt the end of `serverless deploy` you will see inside \"Service Information\" section the websites bucket's URL:\n```\nService Information\nservice: myservice\nstage: dev\nregion: eu-west-1\nstack: myservice-dev\nresources: 6\nfrontend: http://myservice-test.s3-website-eu-west-1.amazonaws.com \u003c-- here thr URL to visit\napi keys:\n  None\nendpoints:\n  None\nfunctions:\n  hello: myservice-test-hello\nlayers:\n  None\n```\n\n## Commands\n\n### Deploy files\n\nDeploy static websites files:\n```bash\n$ serverless deploy frontend\n```\nthis will sync your configured frontend directory with S3 bucket.\n\n_Note: this command is a wrapper of `aws s3 cp \u003clocal path\u003e \u003cbucket\u003e --recursive`, so you must have the [AWS CLI](https://docs.aws.amazon.com/en_us/cli/latest/userguide/cli-chap-install.html) installed._\n\n### Empty bucket\n\nRemove all objects from bucket:\n```bash\n$ serverless remove frontend\n```\n\n### Cleaning\n\nWhen you destroy the environment with `serverless remove` the created bucket will be emptied automatically to permit the deletion.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaru00%2Fserverless-plugin-static-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaaru00%2Fserverless-plugin-static-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaru00%2Fserverless-plugin-static-website/lists"}