{"id":18441602,"url":"https://github.com/stefanwalther/flyway-rest","last_synced_at":"2026-01-30T17:31:26.640Z","repository":{"id":51806407,"uuid":"72078081","full_name":"stefanwalther/flyway-rest","owner":"stefanwalther","description":"REST interface for flyway (https://flywaydb.org/).","archived":false,"fork":false,"pushed_at":"2025-09-01T01:18:08.000Z","size":188,"stargazers_count":0,"open_issues_count":16,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-27T15:46:59.721Z","etag":null,"topics":["flyway","flyway-postgresql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/stefanwalther.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2016-10-27T06:31:01.000Z","updated_at":"2020-07-30T12:37:59.000Z","dependencies_parsed_at":"2024-11-06T06:39:52.812Z","dependency_job_id":"8ede4973-96b3-41de-84d8-5a84401648a8","html_url":"https://github.com/stefanwalther/flyway-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stefanwalther/flyway-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Fflyway-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Fflyway-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Fflyway-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Fflyway-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanwalther","download_url":"https://codeload.github.com/stefanwalther/flyway-rest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Fflyway-rest/sbom","scorecard":{"id":850736,"data":{"date":"2025-08-11","repo":{"name":"github.com/stefanwalther/flyway-rest","commit":"256177893982ebb1937185beae6c53b7a6006784"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"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":-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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: docker/flyway-rest-integration/Dockerfile:2: pin your Docker image by updating mhart/alpine-node:6.9.1 to mhart/alpine-node:6.9.1@sha256:3798c4c6a0949261e20ecee89acafba36ce3c66f16539b7918a410270d402401","Warn: containerImage not pinned by hash: docker/flyway-rest/Dockerfile:3","Warn: npmCommand not pinned by hash: docker/flyway-rest-integration/Dockerfile:19","Warn: downloadThenRun not pinned by hash: docker/flyway-rest/Dockerfile:34-38","Warn: npmCommand not pinned by hash: docker/flyway-rest/Dockerfile:60-61","Warn: npmCommand not pinned by hash: docker/flyway-rest/Dockerfile:60-61","Info:   0 out of   1 downloadThenRun dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   3 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"}}]},"last_synced_at":"2025-08-23T22:27:37.467Z","repository_id":51806407,"created_at":"2025-08-23T22:27:37.467Z","updated_at":"2025-08-23T22:27:37.467Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28916075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["flyway","flyway-postgresql"],"created_at":"2024-11-06T06:38:43.355Z","updated_at":"2026-01-30T17:31:26.625Z","avatar_url":"https://github.com/stefanwalther.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flyway-rest\n\n[![Build Status](https://travis-ci.org/stefanwalther/flyway-rest.svg?branch=master)](https://travis-ci.org/stefanwalther/flyway-rest)\n\n\u003e REST interface for flyway.\n\n## Install\n\n### Run docker container\n\n```sh\ndocker pull flyway-rest\n```\n\n### Run the development environment:\n\n```sh\n$ git clone https://github.com/stefanwalther/flyway-rest \u0026\u0026 cd flyway-rest\n\n$ docker-comose up --f=./docker/docker-compose.dev.yml up\n```\n\n## Usage\n\n### End Points\n\n\u003c!-- see https://github.com/pando85/cherrymusic/blob/devel-django/docs/api/v1/index.md --\u003e\n\nAll endpoints share the same parameters.\nAll endpoints are also described in an OpenAPI definition file (swagger), which can be accessed at http://{server-name}:{port}/api-docs/\n\n### Parameters\n\n**Post parameters**\n\n* **`mode`** - The execution mode. The following values are possible:\n  - `get-cmd` - Does not execute the command, just validates and processes the request and returns the generated command (see `cmd` in the result).\n  - `sync` - Executes the command synchronously and returns the result\n* **`flyway_args`** - Flyway arguments as used in [\"Flyway Command-line\"](https://flywaydb.org/documentation/commandline/)\n* **`files`** -\n\n**Result**\n\n* **`status`** - Status of the operation. Can have the following values:\n  - `OK` - Everything OK.\n  - `Error` - An error occurred, see `error` for more details.\n  - `ValidationError` - A validation error occurred, see `validationErrors` for more details.\n* **`mode`** - The execution mode as passed in.\n* **`cmd`** - The CLI command as generated, based on the input arguments.\n* **`errorMsg`** - Error message in case of `status` equals `Error` or `ValidationError`.\n* **`validationErrors`** - Array of validation errors.\n\n## Examples\n\nThe examples use superagent, so install that first:\n\n```sh\n$ npm install superagent --save\n```\n\n### Clean\n\n```js\nimport superagent from 'superagent'\n\nconst url = 'http://localhost:9001';\nlet args = {\n  \n};\n\nsuperagent( url )\n  .post( '/clean` )\n  .send( 'args' )\n  .end( (err, res) =\u003e {\n\n    // Database has been cleaned\n\n  });\n  \n```\n\n### Migrate\n\n```\nimport superagent from 'superagent';\nimport fs from 'fs';\n\n// Create a list of file definitions\n\nconst url = '';\nlet args = {\n  mode: 'sync',\n  flyway_args: {\n    url: 'jdbc:postgresql://server-name:5432/your-db',\n    user: 'postgres',\n    password: 'postgres'\n  },\n  files: fileDefs\n};\n\nsuperagent( url )\n  .post( '/migrate' )\n  .send( args )\n  .end( ( err, res ) =\u003e {\n    if (err) console.error( err );\n    \n    // DB has been migrated    \n    console.log( 'Migration result: ', res.body );\n    \n  });\n```\n\n## Todos\n\n* [ ] Clear separation of concerns:\n  - [ ] container flyway-rest-integration should not execute unit tests\n* [ ] Container optimization\n  - [ ] No need to do the full install on flyway-rest-integration; could use only a subset of devDependencies\n\n## Author\n\n**Stefan Walther**\n\n* [github/stefanwalther](https://github.com/stefanwalther)\n* [twitter/waltherstefan](http://twitter.com/waltherstefan)\n\n## License\n\nMIT\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on October 31, 2018._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanwalther%2Fflyway-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanwalther%2Fflyway-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanwalther%2Fflyway-rest/lists"}