{"id":41262331,"url":"https://github.com/oshikiri/fake-step-functions","last_synced_at":"2026-01-23T02:03:19.625Z","repository":{"id":33737944,"uuid":"157993532","full_name":"oshikiri/fake-step-functions","owner":"oshikiri","description":"An unit testing toolkit for Amazon States Language","archived":false,"fork":false,"pushed_at":"2025-11-18T13:47:16.000Z","size":1025,"stargazers_count":15,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-18T16:19:03.004Z","etag":null,"topics":["amazon-states-language","aws-step-functions","testing-framework","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oshikiri.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":"2018-11-17T14:42:14.000Z","updated_at":"2025-11-18T13:47:19.000Z","dependencies_parsed_at":"2024-05-01T12:16:25.743Z","dependency_job_id":"64234de4-8b53-4dc4-89fc-f05ad6b09d65","html_url":"https://github.com/oshikiri/fake-step-functions","commit_stats":{"total_commits":210,"total_committers":5,"mean_commits":42.0,"dds":0.0714285714285714,"last_synced_commit":"29bde31cfa9f1e50fa92b688bd852acd4968d6b0"},"previous_names":["oshikiri/fakestepfunctions"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/oshikiri/fake-step-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oshikiri%2Ffake-step-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oshikiri%2Ffake-step-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oshikiri%2Ffake-step-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oshikiri%2Ffake-step-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oshikiri","download_url":"https://codeload.github.com/oshikiri/fake-step-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oshikiri%2Ffake-step-functions/sbom","scorecard":{"id":713493,"data":{"date":"2025-08-11","repo":{"name":"github.com/oshikiri/fake-step-functions","commit":"6b36e8c34e33cf22bfef86befcdb6b00493be1af"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/oshikiri/fake-step-functions/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/oshikiri/fake-step-functions/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/oshikiri/fake-step-functions/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/oshikiri/fake-step-functions/publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/oshikiri/fake-step-functions/publish.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:25","Warn: npmCommand not pinned by hash: .github/workflows/publish.yml:21","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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 25 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":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"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-22T08:48:40.891Z","repository_id":33737944,"created_at":"2025-08-22T08:48:40.891Z","updated_at":"2025-08-22T08:48:40.891Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28677716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"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":["amazon-states-language","aws-step-functions","testing-framework","unit-testing"],"created_at":"2026-01-23T02:03:19.416Z","updated_at":"2026-01-23T02:03:19.567Z","avatar_url":"https://github.com/oshikiri.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fake-step-functions\n=====\n\nA lightweight unit testing toolkit for Amazon States Language.\n\n[![GitHub Workflows Status](https://github.com/oshikiri/fake-step-functions/workflows/test/badge.svg)](https://github.com/oshikiri/fake-step-functions/actions)\n[![npm version](https://badge.fury.io/js/fake-step-functions.svg)](https://badge.fury.io/js/fake-step-functions)\n\n```js\nconst { FakeStateMachine } = require('fake-step-functions');\n\ndescribe('FakeStateMachine.run', () =\u003e {\n  const definition = {\n    Comment: 'https://states-language.net/spec.html#data',\n    StartAt: 'AddNumbers',\n    States: {\n      AddNumbers: {\n        Type: 'Task',\n        Resource: 'arn:aws:lambda:us-east-1:123456789012:function:Add',\n        InputPath: '$.numbers',\n        ResultPath: '$.sum',\n        End: true,\n      },\n    },\n  };\n  const fakeResources = {\n    'arn:aws:lambda:us-east-1:123456789012:function:Add': numbers =\u003e numbers.val1 + numbers.val2,\n  };\n  const fakeStateMachine = new FakeStateMachine(definition, fakeResources);\n\n  test('should execute the state machine with fakeResource', async () =\u003e {\n    const runStateResult = await fakeStateMachine.run({\n      title: 'Numbers to add',\n      numbers: { val1: 3, val2: 4 },\n    });\n\n    expect(runStateResult.data).toEqual({\n      title: 'Numbers to add',\n      numbers: { val1: 3, val2: 4 },\n      sum: 7,\n    });\n  });\n});\n```\n\n\n## Release\n\nIn order to release new version to npm, create a commit using `npm version patch -m \"Release %s\"` and push it.\nSee the npm-publish-action step in `.github/workflows/publish.yml`.\n\n\n## References\n\n### Specifications\n\n- Amazon States Language specification \u003chttps://states-language.net/spec.html\u003e\n- Amazon States Language - AWS Step Functions \u003chttps://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html\u003e\n\n\n### Similar projects\n\nAt 2022, **AWS Step Functions Local** is a primary choice to test ASL locally.\nSee [\"Testing Step Functions State Machines Locally\"](https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local.html).\n\n- [airware/stepfunctions\\-local](https://github.com/airware/stepfunctions-local)\n- [wmfs/statebox](https://github.com/wmfs/statebox)\n- [mikeparisstuff/stateslang\\-js](https://github.com/mikeparisstuff/stateslang-js)\n- [coinbase/step](https://github.com/coinbase/step) (Golang)\n- validators\n  - [airware/asl\\-validator](https://github.com/airware/asl-validator)\n  - [awslabs/statelint](https://github.com/awslabs/statelint) (Ruby)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foshikiri%2Ffake-step-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foshikiri%2Ffake-step-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foshikiri%2Ffake-step-functions/lists"}