{"id":15423614,"url":"https://github.com/travisspomer/create-redirects","last_synced_at":"2026-05-03T15:35:06.228Z","repository":{"id":117496596,"uuid":"358792137","full_name":"TravisSpomer/create-redirects","owner":"TravisSpomer","description":"A GitHub Action that builds redirect pages using \u003cmeta http-equiv=\"refresh\"\u003e.","archived":false,"fork":false,"pushed_at":"2021-06-27T00:03:15.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-01T13:32:22.739Z","etag":null,"topics":["action","actions","azure","azure-storage","cd","continuous-deployment","github","static-site","website"],"latest_commit_sha":null,"homepage":"","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/TravisSpomer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-17T05:22:36.000Z","updated_at":"2022-09-28T11:15:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"6049a475-1667-4142-b2d0-f473516db470","html_url":"https://github.com/TravisSpomer/create-redirects","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"60f2dcb802b0a1d970407f3cc0d1d4f249261fda"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TravisSpomer/create-redirects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravisSpomer%2Fcreate-redirects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravisSpomer%2Fcreate-redirects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravisSpomer%2Fcreate-redirects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravisSpomer%2Fcreate-redirects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TravisSpomer","download_url":"https://codeload.github.com/TravisSpomer/create-redirects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravisSpomer%2Fcreate-redirects/sbom","scorecard":{"id":143554,"data":{"date":"2025-08-11","repo":{"name":"github.com/TravisSpomer/create-redirects","commit":"60f2dcb802b0a1d970407f3cc0d1d4f249261fda"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/2 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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 'main'"],"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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42"],"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-16T08:49:06.813Z","repository_id":117496596,"created_at":"2025-08-16T08:49:06.813Z","updated_at":"2025-08-16T08:49:06.813Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["action","actions","azure","azure-storage","cd","continuous-deployment","github","static-site","website"],"created_at":"2024-10-01T17:44:01.602Z","updated_at":"2026-05-03T15:35:06.208Z","avatar_url":"https://github.com/TravisSpomer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create redirects\n\nA GitHub Action that builds redirect pages using `\u003cmeta http-equiv=\"refresh\"\u003e` into a folder containing already-built static website files, allowing you to simulate routing rules on a static website host (such as Azure Blob Storage) that doesn't support routing rules.\n\n## What you'll need\n\n* A GitHub Actions workflow that builds your static website.\n* A list of redirect files you want created in the JSON format described below.\n\n## Usage\n\nHere's an example of how to use the action in your workflow.\n\n**.github/workflows/deploy.yml**\n\n```yaml\nname: Deploy website\n\non:\n  workflow_dispatch:\n  push:\n    branches: [ main ]\n\njobs:\n  build-and-deploy:\n    name: Build and deploy\n    runs-on: ubuntu-latest\n    \n    steps:\n    - uses: actions/checkout@v2\n      \n    - name: Install Node.js\n      uses: actions/setup-node@v1\n      with:\n        node-version: 12.x\n      \n    - name: Build website\n      run: |\n        npm install\n        npm run build\n        \n    - name: Create redirects\n      uses: TravisSpomer/create-redirects@v1.1.0\n      with:\n        output-path: build\n        routes: staticwebapp.config.json\n        canonical-url: https://mysite.z22.web.core.windows.net\n```\n\n## Options\n\n### `output-path`\n\n*Required.* The location of your built site files, relative to the root of the repo.\n\nFor example, for a [Next.js site exported with `next export`](https://nextjs.org/docs/advanced-features/static-html-export), the generated static files are in a folder called `\"out\"`. [SvelteKit with the static adapter](https://github.com/sveltejs/kit/tree/master/packages/adapter-static) uses `\"build\"`.\n\n### `routes`\n\n*Required.* The location of your staticwebapp.config.json file, relative to the root of the repo. This can be any location and does *not* have to be inside `output-path`. The file doesn't actually have to be called `staticwebapp.config.json` but you probably should name it that or `routes.json`.\n\n### `canonical-url`\n\n*Required.* The canonical URL of your published site.\n\n## `staticwebapp.config.json` format\n\nSpecify the set of redirect files you want to create using a `staticwebapp.config.json` file. This file is in the same format as the [Azure Static Web Apps configuration file](https://docs.microsoft.com/en-us/azure/static-web-apps/configuration). Only the `routes` array in this file is used; the rest is ignored.\n\n```json\n{\n  \"routes\": [\n    { \"route\": \"/contact\", \"redirect\": \"/email\" },\n    { \"route\": \"/about.html\", \"redirect\": \"https://example.com/about\" }\n  ]\n}\n```\n\nEach object in the `routes` array has two properties:\n\n* `route`: The path that will redirect to another location, relative to the root of the website and starting with a slash.\n* `redirect`: The path that `route` will redirect to. This can be a relative or absolute path, including on another server entirely.\n\t* This can also be named `serve` for compatibility with the schema used for a preview version of the Azure Static Web Apps service.\n\nAny object that does not contain both `route` and `redirect` (or `serve`) is ignored.\n\n---\n\nThis action is © 2021 Travis Spomer but released to the public domain under the [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0) license. This license does not apply to external libraries referenced by this action; only the action itself. It is provided as-is and no warranties are made as to its functionality or suitability.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisspomer%2Fcreate-redirects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravisspomer%2Fcreate-redirects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisspomer%2Fcreate-redirects/lists"}