{"id":24678806,"url":"https://github.com/islishude/spa-deploy-action","last_synced_at":"2026-04-30T11:37:27.684Z","repository":{"id":192249533,"uuid":"686354011","full_name":"islishude/spa-deploy-action","owner":"islishude","description":"Deploy your single page applications to S3 with correct cache control","archived":false,"fork":false,"pushed_at":"2026-03-01T05:23:31.000Z","size":4252,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T23:52:54.272Z","etag":null,"topics":["actions","aws","deployment","s3","single-page-applications","spa"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/islishude.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-02T14:05:45.000Z","updated_at":"2026-03-01T05:23:28.000Z","dependencies_parsed_at":"2024-04-01T04:27:32.733Z","dependency_job_id":"6734bf95-6bf9-469b-80c6-b30cee71f510","html_url":"https://github.com/islishude/spa-deploy-action","commit_stats":null,"previous_names":["islishude/spa-deploy-action"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/islishude/spa-deploy-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islishude%2Fspa-deploy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islishude%2Fspa-deploy-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islishude%2Fspa-deploy-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islishude%2Fspa-deploy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/islishude","download_url":"https://codeload.github.com/islishude/spa-deploy-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islishude%2Fspa-deploy-action/sbom","scorecard":{"id":495726,"data":{"date":"2025-08-11","repo":{"name":"github.com/islishude/spa-deploy-action","commit":"dcc757f2cbeb6568cc07798bbf7495ab2d125b13"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/4 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/check-dist.yml:19","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:21","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:19","Warn: jobLevel 'checks' permission set to 'write': .github/workflows/codeql-analysis.yml:20","Warn: no topLevel permission defined: .github/workflows/check-dist.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1"],"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/islishude/spa-deploy-action/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/islishude/spa-deploy-action/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/islishude/spa-deploy-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/islishude/spa-deploy-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/islishude/spa-deploy-action/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/islishude/spa-deploy-action/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/islishude/spa-deploy-action/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/islishude/spa-deploy-action/codeql-analysis.yml/main?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"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":"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":"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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":9,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 23 commits out of 28 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":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"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-19T20:23:13.461Z","repository_id":192249533,"created_at":"2025-08-19T20:23:13.461Z","updated_at":"2025-08-19T20:23:13.461Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32463892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["actions","aws","deployment","s3","single-page-applications","spa"],"created_at":"2025-01-26T13:18:29.549Z","updated_at":"2026-04-30T11:37:22.676Z","avatar_url":"https://github.com/islishude.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spa-deploy-action\n\n[![Lint and test](https://github.com/islishude/spa-deploy-action/actions/workflows/ci.yml/badge.svg)](https://github.com/islishude/spa-deploy-action/actions/workflows/ci.yml)\n![TestCoverage](./badges/coverage.svg)\n\nDeploy your single page application to S3 with correct cache control\n\n## Usage\n\n```yaml\nname: Build and deploy your spa\non:\n  push:\n    branches:\n      - main\n\npermissions:\n  contents: read\n  id-token: write\n\njobs:\n  spa_build_deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n      - name: Configure AWS credentials\n        uses: aws-actions/configure-aws-credentials@v4\n        with:\n          role-to-assume: arn:aws:iam::111111111111:role/my-github-actions-role\n          aws-region: us-east-1\n      - name: Use Node.js\n        uses: actions/setup-node@v4\n        with:\n          node-version: 20\n          cache: npm\n      - name: Install dependencies\n        run: npm ci\n      - name: Build\n        run: npm run build\n      - name: Deploy\n        uses: islishude/spa-deploy-action@v1\n        with:\n          dir-path: 'dist'\n          s3-bucket: your-s3-bucket-name\n```\n\n## Inputs\n\n| Name                       | Type   | Default | Required | Description                                                                                                         |\n| -------------------------- | ------ | ------- | -------- | ------------------------------------------------------------------------------------------------------------------- |\n| dir-path                   | string |         | yes      | directory path for deploying                                                                                        |\n| s3-bucket                  | string |         | yes      | aws s3 bucket name                                                                                                  |\n| s3-bucket-prefix           | string |         | no       | aws s3 bucket prefix to deploy                                                                                      |\n| delete                     | bool   | true    | no       | files that exist in the s3 but not in the local are deleted                                                         |\n| cache-control              | json   | {}      | no       | file glob and cache control directive pairs, the glob matcher uses [minimatch](https://github.com/isaacs/minimatch) |\n| cache-control-merge-policy | string | upsert  | no       | used for merge built-in and your custom cache-control                                                               |\n| default-cache-control      | string |         | no       | use if no matched with cache-control                                                                                |\n\n## Built-in cache control mapping\n\n```json\n{\n  \"index.html\": \"public,max-age=60,stale-while-revalidate=2592000\",\n  \"*.css\": \"public,max-age=31536000,immutable\",\n  \"*.js\": \"public,max-age=31536000,immutable\",\n  \"*.png\": \"public,max-age=86400,stale-while-revalidate=2592000\",\n  \"*.jpg\": \"public,max-age=86400,stale-while-revalidate=2592000\",\n  \"*.ico\": \"public,max-age=86400,stale-while-revalidate=2592000\",\n  \"*.svg\": \"public,max-age=86400,stale-while-revalidate=2592000\"\n}\n```\n\nyou can provide a cache-control input to update it.\n\nif you use the default `cache-control-merge-policy: 'upsert'`, the action will\nupdate an existing key if a specified value already exists in the built-in cache\ncontrol mapping, and insert a new key-value if the specified value doesn't\nalready exist\n\nif you use `cache-control-merge-policy: 'replace'`, the action will use the\n`cache-control` input you provided.\n\n## Required AWS IAM Policy\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\"s3:ListBucket\"],\n      \"Resource\": \"arn:aws:s3:::mybucket\"\n    },\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\"s3:PutObject\", \"s3:DeleteObject\"],\n      \"Resource\": \"arn:aws:s3:::mybucket/prefix/*\"\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fislishude%2Fspa-deploy-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fislishude%2Fspa-deploy-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fislishude%2Fspa-deploy-action/lists"}