{"id":7743897,"name":"vbem/flatten-contexts","ecosystem":"actions","description":"Dump flattened GitHub contexts for friendly debugging","homepage":"https://github.com/marketplace/actions/flatten-contexts","licenses":"apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/vbem/flatten-contexts","keywords_array":["actions","contexts","debug","dump","github-actions"],"namespace":"vbem","versions_count":4,"first_release_published_at":"2022-04-02T15:45:49.000Z","latest_release_published_at":"2023-09-18T02:11:49.000Z","latest_release_number":"v1.0.2","last_synced_at":"2026-09-24T12:07:13.383Z","created_at":"2023-05-17T08:45:31.940Z","updated_at":"2026-09-24T12:07:13.383Z","registry_url":"https://github.com/vbem/flatten-contexts","install_command":null,"documentation_url":null,"metadata":{"name":"Flatten Contexts","author":"@vbem","description":"Dump flattened GitHub contexts for friendly debugging","branding":{"icon":"align-justify","color":"green"},"inputs":{"sep":{"description":"Separator between key and value","required":false,"default":""}},"outputs":{},"runs":{"using":"composite","steps":[{"name":"Dump flattened GitHub actions contexts for debugging","id":"main","env":{"STEP_CTX_GITHUB":"${{ toJson(github) }}","STEP_CTX_JOB":"${{ toJson(job) }}","STEP_CTX_STEPS":"${{ toJson(steps) }}","STEP_CTX_RUNNER":"${{ toJson(runner) }}","STEP_CTX_STRATEGY":"${{ toJson(strategy) }}","STEP_CTX_MATRIX":"${{ toJson(matrix) }}"},"shell":"bash","run":"# implementation details\n\n# Group stdin to stderr with title\n# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#grouping-log-lines\n#   $1: group title\n#   stdin: logs\n#   stderr: grouped logs\n#   $?: 0 if successful and non-zero otherwise\nfunction kit::wf::group {\n    echo \"::group::$1\"      \u003e\u00262\n    echo \"$(\u003c /dev/stdin)\"  \u003e\u00262\n    echo '::endgroup::'     \u003e\u00262\n}\n\n# Flatten JSON to key-value lines\n#   $1: separator (default as ' 👉 ')\n#   stdin: json\n#   stdout: flattened key-value lines\n#   $?: 0 if successful and non-zero otherwise\nfunction kit::json::flatten {\n    jq -Mcr --arg sep \"${1:- 👉 }\" \\\n    'paths(type!=\"object\" and type!=\"array\") as $p | {\"key\":$p|join(\".\"),\"value\":getpath($p)} | \"\\(.key)\\($sep)\\(.value|@json)\"'\n}\n\n# Render the context\n#   $1: context name\n#   stdin: json\n#   stderr: redered output\n#   $?: 0 if successful and non-zero otherwise\nfunction render {\n    kit::json::flatten '${{ inputs.sep }}' | kit::wf::group \"📚 GitHub context: '$1'\"\n}\n\njq -Mcre '{runner:.}' \u003c\u003c\u003c \"$STEP_CTX_RUNNER\" | render \"runner\"\njq -Mcre 'del(.token)|del(.event)|{github:.}' \u003c\u003c\u003c \"$STEP_CTX_GITHUB\" | render \"github\"\njq -Mcre '{github:{event:.event}}' \u003c\u003c\u003c \"$STEP_CTX_GITHUB\" | render \"github.event\"\njq -Mcre '{job:.}' \u003c\u003c\u003c \"$STEP_CTX_JOB\" | render \"job\"\njq -Mcre '{steps:.}' \u003c\u003c\u003c \"$STEP_CTX_STEPS\" | render \"steps\"\njq -Mcre '{strategy:.}' \u003c\u003c\u003c \"$STEP_CTX_STRATEGY\" | render \"strategy\"\njq -Mcre '{matrix:.}' \u003c\u003c\u003c \"$STEP_CTX_MATRIX\" | render \"matrix\"\n"}]},"default_branch":"main","path":null},"repo_metadata":{"id":65162193,"uuid":"477080111","full_name":"vbem/flatten-contexts","owner":"vbem","description":"An action dumps flattened GitHub contexts for debugging.","archived":false,"fork":false,"pushed_at":"2026-05-05T13:22:12.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-08-19T14:37:16.401Z","etag":null,"topics":["actions","contexts","debug","dump","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/flatten-contexts","language":null,"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/vbem.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":".github/CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2022-04-02T14:35:48.000Z","updated_at":"2026-05-25T12:30:34.000Z","dependencies_parsed_at":"2023-10-21T09:32:23.744Z","dependency_job_id":null,"html_url":"https://github.com/vbem/flatten-contexts","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vbem/flatten-contexts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbem","download_url":"https://codeload.github.com/vbem/flatten-contexts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/sbom","scorecard":{"id":917140,"data":{"date":"2025-08-18","repo":{"name":"github.com/vbem/flatten-contexts","commit":"aa0b8d276e6b8a60d5f4e4075040db2c8a03666b"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3.4,"checks":[{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/linter.yml:16","Info: jobLevel 'packages' permission set to 'read': .github/workflows/linter.yml:17","Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/linter.yml:18","Warn: no topLevel permission defined: .github/workflows/linter.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/22 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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/linter.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/vbem/flatten-contexts/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/vbem/flatten-contexts/test.yml/main?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T21:27:00.674Z","repository_id":65162193,"created_at":"2025-08-24T21:27:00.675Z","updated_at":"2025-08-24T21:27:00.675Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37381934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-17T02:00:07.197Z","response_time":111,"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"},"owner_record":{"login":"vbem","name":"Lei LI","uuid":"5989600","kind":"user","description":"Cloud Solution Architect with ISTJ personality, fighting against entropy increase, believing successful digital transition always stands by the KISS principle.","email":"","website":"lilei.tech","location":"Shanghai, China","twitter":"vbem","company":"@ingka-group-digital","icon_url":"https://avatars.githubusercontent.com/u/5989600?u=971b7d7a62e6cd87e9ac706af307821793d5e80c\u0026v=4","repositories_count":4,"last_synced_at":"2023-05-02T07:36:27.925Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/vbem","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2023-05-02T07:36:27.932Z","updated_at":"2023-05-02T07:36:27.932Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbem","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbem/repositories"},"tags":[{"name":"v1.0.2","sha":"d0194b067b7e67d17691ec5baad6c34121853b7d","kind":"commit","published_at":"2023-09-18T02:11:49.000Z","download_url":"https://codeload.github.com/vbem/flatten-contexts/tar.gz/v1.0.2","html_url":"https://github.com/vbem/flatten-contexts/releases/tag/v1.0.2","dependencies_parsed_at":"2023-09-21T07:37:59.737Z","dependency_job_id":null,"purl":"pkg:github/vbem/flatten-contexts@v1.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags/v1.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags/v1.0.2/manifests"},{"name":"v1","sha":"241d1e365afc20c5a46e08dc53bcb35c1b3ba8ee","kind":"commit","published_at":"2022-04-03T10:30:32.000Z","download_url":"https://codeload.github.com/vbem/flatten-contexts/tar.gz/v1","html_url":"https://github.com/vbem/flatten-contexts/releases/tag/v1","dependencies_parsed_at":"2023-06-01T12:59:20.516Z","dependency_job_id":null,"purl":"pkg:github/vbem/flatten-contexts@v1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags/v1/manifests"},{"name":"v1.0.1","sha":"241d1e365afc20c5a46e08dc53bcb35c1b3ba8ee","kind":"commit","published_at":"2022-04-03T10:30:32.000Z","download_url":"https://codeload.github.com/vbem/flatten-contexts/tar.gz/v1.0.1","html_url":"https://github.com/vbem/flatten-contexts/releases/tag/v1.0.1","dependencies_parsed_at":"2023-06-01T12:59:19.721Z","dependency_job_id":null,"purl":"pkg:github/vbem/flatten-contexts@v1.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags/v1.0.1/manifests"},{"name":"v1.0.0","sha":"796d09e83c6d8d0ab731635b13ef044e9e618f80","kind":"commit","published_at":"2022-04-02T15:45:49.000Z","download_url":"https://codeload.github.com/vbem/flatten-contexts/tar.gz/v1.0.0","html_url":"https://github.com/vbem/flatten-contexts/releases/tag/v1.0.0","dependencies_parsed_at":"2023-06-01T12:59:21.281Z","dependency_job_id":null,"purl":"pkg:github/vbem/flatten-contexts@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2026-09-17T07:39:05.759Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":40.26221692491061,"dependent_packages_count":0.0,"stargazers_count":27.664104867418573,"forks_count":35.22640316731543,"docker_downloads_count":null,"average":25.788181239911154},"purl":"pkg:githubactions/vbem/flatten-contexts","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/vbem/flatten-contexts","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/vbem/flatten-contexts","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/vbem/flatten-contexts/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-03-13T08:27:50.185Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbem%2Fflatten-contexts/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/vbem%2Fflatten-contexts/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/vbem%2Fflatten-contexts/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/vbem%2Fflatten-contexts/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/vbem%2Fflatten-contexts/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/vbem%2Fflatten-contexts/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/vbem%2Fflatten-contexts/codemeta","maintainers":[]}