{"id":6362794,"name":"stackql/stackql-exec","ecosystem":"actions","description":"A wrapper for executing a single command, maps all stackql exec args to actions args (supplied using with.)","homepage":null,"licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/stackql/stackql-exec","keywords_array":[],"namespace":"stackql","versions_count":14,"first_release_published_at":"2023-02-05T12:50:01.000Z","latest_release_published_at":"2024-10-28T23:48:26.000Z","latest_release_number":"v2.2.3","last_synced_at":"2026-03-18T18:49:31.235Z","created_at":"2023-02-19T01:30:21.951Z","updated_at":"2026-03-18T18:49:31.236Z","registry_url":"https://github.com/stackql/stackql-exec","install_command":null,"documentation_url":null,"metadata":{"name":"stackql-exec","description":"A wrapper for executing a single command, maps all stackql exec args to actions args (supplied using with.)","author":"Yuncheng Yang, StackQL Studios","inputs":{"query":{"description":"stackql query to be executed","required":false},"query_file_path":{"description":"stackql query file to be executed","required":false},"data_file_path":{"description":"jsonnet or json data file to be passed to query preprocessor","required":false},"dry_run":{"description":"set to true to print the query that would be executed without actually executing it (default is false)","required":false,"default":"false"},"vars":{"description":"comma delimited list of vars to be passed to query preprocessor (supported with jsonnet config blocks or jsonnet data files only)","required":false},"query_output":{"description":"output format for queries (ignored is `is_command` is `true`), supported formats include `json` (default), `csv`, `table` and `text`","default":"json","required":false},"auth_obj_path":{"description":"file path to json object of stackql auth, not required if using standard provider authentication environment variables","required":false},"auth_str":{"description":"json string of stackql auth, not required if using standard provider authentication environment variables","required":false},"is_command":{"description":"Set to true if the stackql execution is a command that does not return data","required":false,"default":"false"},"on_failure":{"description":"behavior on a failure in query, supported values are `exit` (default) and `continue`","required":false,"default":"exit"}},"outputs":{"stackql-query-results":{"description":"results from a stackql query (in the format specified)","value":"${{ steps.exec-stackql.outputs.stackql-query-results }}"},"stackql-command-output":{"description":"text output from a stackql command (a query that does not return data)","value":"${{ steps.exec-stackql.outputs.stackql-command-output }}"},"stackql-query-error":{"description":"error from a stackql query","value":"${{ steps.exec-stackql.outputs.stackql-query-error }}"}},"runs":{"using":"composite","steps":[{"name":"Check StackQL is installed and set output","id":"check-stackql","shell":"bash","run":"if command -v stackql \u0026\u003e /dev/null; then\n    echo \"stackql_installed=true\" \u003e\u003e $GITHUB_OUTPUT\nelse\n    echo \"stackql_installed=false\" \u003e\u003e $GITHUB_OUTPUT\nfi\n"},{"name":"Setup StackQL","uses":"stackql/setup-stackql@v2.2.3","if":"${{steps.check-stackql.outputs.stackql_installed == 'false'}}","with":{"use_wrapper":true}},{"name":"Validate Stackql Version","shell":"bash","run":"stackql --version\n"},{"name":"Setup auth","id":"setup-auth","uses":"actions/github-script@v7.0.1","with":{"script":"const path = require('path');\nconst utilsPath = path.join(process.env.GITHUB_ACTION_PATH, 'lib', 'utils.js')\nconst {setupAuth} = require(utilsPath)\nsetupAuth(core)\n"},"env":{"AUTH_FILE_PATH":"${{ inputs.auth_obj_path }}","AUTH_STR":"${{inputs.auth_str}}"}},{"name":"get stackql command","uses":"actions/github-script@v7.0.1","with":{"script":"const path = require('path');\nconst utilsPath = path.join(process.env.GITHUB_ACTION_PATH, 'lib', 'utils.js')\nconst {getStackqlCommand} = require(utilsPath)\ngetStackqlCommand(core)\n"},"env":{"QUERY_FILE_PATH":"${{ inputs.query_file_path }}","QUERY":"${{inputs.query}}","DATA_FILE_PATH":"${{inputs.data_file_path}}","DRY_RUN":"${{inputs.dry_run}}","OUTPUT":"${{inputs.query_output}}","VARS":"${{inputs.vars}}"}},{"name":"execute stackql command","uses":"actions/github-script@v7.0.1","id":"exec-stackql","with":{"script":"const path = require('path');\nconst utilsPath = path.join(process.env.GITHUB_ACTION_PATH, 'lib', 'utils.js')\nconst {execStackQLQuery} = require(utilsPath);\nconst onFailure = process.env.ON_FAILURE || 'exit';  // default to 'exit' if not specified\nawait execStackQLQuery(core, process.env.STACKQL_COMMAND, process.env.IS_COMMAND === 'true', onFailure, process.env.DRY_RUN === 'true');\n"},"env":{"IS_COMMAND":"${{ inputs.is_command }}","DRY_RUN":"${{ inputs.dry_run }}","ON_FAILURE":"${{ inputs.on_failure }}"}}]},"branding":{"icon":"terminal","color":"blue"},"default_branch":"main","path":null},"repo_metadata":{"id":65697776,"uuid":"597243730","full_name":"stackql/stackql-exec","owner":"stackql","description":"Github Action as a wrapper for executing a single command in stackql, maps all stackql exec args to actions args","archived":false,"fork":false,"pushed_at":"2024-10-28T21:40:42.000Z","size":257,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-28T22:30:38.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/stackql.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}},"created_at":"2023-02-04T00:26:37.000Z","updated_at":"2024-04-28T22:27:49.000Z","dependencies_parsed_at":"2024-10-28T22:38:44.405Z","dependency_job_id":null,"html_url":"https://github.com/stackql/stackql-exec","commit_stats":{"total_commits":100,"total_committers":2,"mean_commits":50.0,"dds":"0.020000000000000018","last_synced_commit":"f8096c7b3b5ef39f8f476c6e56f7b8a694bababd"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackql","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225674897,"owners_count":17506272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"stackql","name":"StackQL Studios","uuid":"95105302","kind":"organization","description":"Cloud infrastructure, platform and software asset management and deployment automation software solutions.","email":"info@stackql.io","website":"https://stackql.io/","location":"Australia","twitter":"stackql","company":null,"icon_url":"https://avatars.githubusercontent.com/u/95105302?v=4","repositories_count":57,"last_synced_at":"2024-05-01T09:35:07.382Z","metadata":{"has_sponsors_listing":true},"html_url":"https://github.com/stackql","funding_links":["https://github.com/sponsors/stackql"],"total_stars":738,"followers":40,"following":0,"created_at":"2022-11-14T07:28:08.744Z","updated_at":"2024-05-01T09:35:33.868Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackql","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackql/repositories"},"tags":[{"name":"v2.2.3","sha":"cf3a7d7bf8dabb7ffee872b7d3f6857a57b8a13d","kind":"commit","published_at":"2024-10-28T23:48:26.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v2.2.3","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v2.2.3","dependencies_parsed_at":"2024-10-30T04:39:03.669Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.2.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.2.3/manifests"},{"name":"v2.2.2","sha":"8678e106c14555b79ca99016b83b070caa07867a","kind":"commit","published_at":"2024-10-28T21:40:28.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v2.2.2","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v2.2.2","dependencies_parsed_at":"2024-10-30T04:39:03.601Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.2.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.2.2/manifests"},{"name":"v2.2.1","sha":"d3b031f781d52d13f71ce816bdb6a541b71bad41","kind":"tag","published_at":"2024-04-28T22:28:46.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v2.2.1","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v2.2.1","dependencies_parsed_at":"2024-04-30T04:21:58.165Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.2.1/manifests"},{"name":"v2.2.0","sha":"04e0237bf5d3438f93ba5b194f3bb43047e2dd19","kind":"tag","published_at":"2024-04-28T21:59:21.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v2.2.0","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v2.2.0","dependencies_parsed_at":"2024-04-30T04:21:58.126Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.2.0/manifests"},{"name":"v2.1.2","sha":"3bd4e3e17ee3a6932603fade5ec88fd72045066c","kind":"tag","published_at":"2024-04-28T09:04:42.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v2.1.2","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v2.1.2","dependencies_parsed_at":"2024-04-30T04:21:58.186Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.1.2/manifests"},{"name":"v2.1.1","sha":"8c03ed255bf28f57a8840ed23567ad2a742301b8","kind":"tag","published_at":"2024-04-27T04:36:21.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v2.1.1","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v2.1.1","dependencies_parsed_at":"2024-04-29T04:17:20.354Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.1.1/manifests"},{"name":"v2.1.0","sha":"63d7bf9ecf8ef7c8bc6f383d5b528a27bbba2020","kind":"tag","published_at":"2024-04-26T22:24:55.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v2.1.0","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v2.1.0","dependencies_parsed_at":"2024-04-28T05:10:42.954Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v2.1.0/manifests"},{"name":"v1.3.1","sha":"f4254275b3675285d077875f9f50bd816d94cc00","kind":"commit","published_at":"2023-09-03T21:55:22.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v1.3.1","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v1.3.1","dependencies_parsed_at":"2023-09-07T05:16:55.390Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.3.1/manifests"},{"name":"v1.3.0","sha":"9484f89cc443e57eae48c1300585bb40717efa86","kind":"commit","published_at":"2023-09-03T21:37:23.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v1.3.0","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v1.3.0","dependencies_parsed_at":"2023-09-07T05:16:55.318Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.3.0/manifests"},{"name":"v1.2.1","sha":"9e711ee7d38ee46bd002757cfdcb8e80898c2dfb","kind":"commit","published_at":"2023-09-03T05:44:40.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v1.2.1","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v1.2.1","dependencies_parsed_at":"2023-09-06T04:59:04.082Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.2.1/manifests"},{"name":"v1.2.0","sha":"889b6e7bb604fccee9f401eb522113ffb5d439f3","kind":"commit","published_at":"2023-09-03T05:20:42.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v1.2.0","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v1.2.0","dependencies_parsed_at":"2023-09-06T04:59:04.021Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.2.0/manifests"},{"name":"v1.0.1","sha":"f8096c7b3b5ef39f8f476c6e56f7b8a694bababd","kind":"commit","published_at":"2023-03-01T09:14:20.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v1.0.1","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v1.0.1","dependencies_parsed_at":"2023-06-02T01:13:10.509Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.0.1/manifests"},{"name":"v1.0.0","sha":"c628cf458a89b6fa3ab7b55ffd93c1f398361205","kind":"commit","published_at":"2023-02-25T23:07:32.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v1.0.0","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v1.0.0","dependencies_parsed_at":"2023-06-02T01:13:10.537Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.0.0/manifests"},{"name":"v1.0.0-beta","sha":"1d261774bdcbad7f1f713256507152db680a972e","kind":"commit","published_at":"2023-02-05T12:50:01.000Z","download_url":"https://codeload.github.com/stackql/stackql-exec/tar.gz/v1.0.0-beta","html_url":"https://github.com/stackql/stackql-exec/releases/tag/v1.0.0-beta","dependencies_parsed_at":"2023-06-01T15:52:35.668Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.0.0-beta","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/tags/v1.0.0-beta/manifests"}]},"repo_metadata_updated_at":"2024-11-21T05:28:50.911Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":1,"rankings":{"downloads":null,"dependent_repos_count":24.750435747108224,"dependent_packages_count":0.0,"stargazers_count":15.601331009348756,"forks_count":35.113294248138175,"docker_downloads_count":null,"average":18.86626525114879},"purl":"pkg:githubactions/stackql/stackql-exec","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/stackql/stackql-exec","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/stackql/stackql-exec","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/stackql/stackql-exec/dependencies","status":null,"funding_links":["https://github.com/sponsors/stackql"],"critical":null,"issue_metadata":{"last_synced_at":"2024-11-21T05:23:27.352Z","issues_count":4,"pull_requests_count":17,"avg_time_to_close_issue":8345818.5,"avg_time_to_close_pull_request":702025.5294117647,"issues_closed_count":4,"pull_requests_closed_count":17,"pull_request_authors_count":2,"issue_authors_count":2,"avg_comments_per_issue":0.75,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":16,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":6,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":43892.0,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":6,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":6,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fstackql-exec/issues","maintainers":[{"login":"FabioYyc","count":12,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/FabioYyc"},{"login":"jeffreyaven","count":9,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jeffreyaven"}],"active_maintainers":[{"login":"jeffreyaven","count":6,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jeffreyaven"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stackql%2Fstackql-exec/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stackql%2Fstackql-exec/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stackql%2Fstackql-exec/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stackql%2Fstackql-exec/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stackql%2Fstackql-exec/codemeta","maintainers":[]}