{"id":13722538,"url":"https://github.com/turbot/steampipe-action-setup","last_synced_at":"2025-09-12T03:43:08.968Z","repository":{"id":36957520,"uuid":"502637320","full_name":"turbot/steampipe-action-setup","owner":"turbot","description":"Set up your GitHub Actions workflow with Steampipe and plugin connections.","archived":false,"fork":false,"pushed_at":"2025-08-12T11:09:29.000Z","size":1512,"stargazers_count":15,"open_issues_count":10,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-08-12T19:43:10.751Z","etag":null,"topics":["github-actions","hacktoberfest","steampipe"],"latest_commit_sha":null,"homepage":"https://steampipe.io","language":"JavaScript","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/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-06-12T14:23:18.000Z","updated_at":"2025-08-04T11:05:44.000Z","dependencies_parsed_at":"2023-02-16T05:01:12.949Z","dependency_job_id":"bbc59964-737e-446a-8f4f-63f19125150f","html_url":"https://github.com/turbot/steampipe-action-setup","commit_stats":{"total_commits":105,"total_committers":4,"mean_commits":26.25,"dds":0.2571428571428571,"last_synced_commit":"e2dc904f4eeb051257658d402e52142cb78de9b5"},"previous_names":["turbot/steampipe-action-setup","francois2metz/setup-steampipe"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/turbot/steampipe-action-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-action-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-action-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-action-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-action-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/steampipe-action-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-action-setup/sbom","scorecard":{"id":902608,"data":{"date":"2025-08-11","repo":{"name":"github.com/turbot/steampipe-action-setup","commit":"8851809c0286e8bfc6a55435da5de43b144feb04"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Maintained","score":0,"reason":"1 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":"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":"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":"Code-Review","score":2,"reason":"Found 3/12 approved changesets -- score normalized to 2","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Warn: no topLevel permission defined: .github/workflows/check-dist.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/turbot/steampipe-action-setup/test.yml/main?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   2 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":"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":"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":"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":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/turbot/.github/SECURITY.md:1","Info: Found linked content: github.com/turbot/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/turbot/.github/SECURITY.md:1","Info: Found text in security policy: github.com/turbot/.github/SECURITY.md:1"],"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 1 commits out of 21 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":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","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-24T16:10:39.646Z","repository_id":36957520,"created_at":"2025-08-24T16:10:39.647Z","updated_at":"2025-08-24T16:10:39.647Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274749145,"owners_count":25342074,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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":["github-actions","hacktoberfest","steampipe"],"created_at":"2024-08-03T01:01:30.064Z","updated_at":"2025-09-12T03:43:08.944Z","avatar_url":"https://github.com/turbot.png","language":"JavaScript","funding_links":[],"categories":["Deploy and run"],"sub_categories":[],"readme":"# Setup Steampipe for GitHub Actions\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/turbot/steampipe-action-setup/actions\"\u003e\u003cimg alt=\"steampipe-action status\" src=\"https://github.com/turbot/steampipe-action-setup/workflows/units-test/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis action installs [Steampipe](https://github.com/turbot/steampipe/) and optionally installs plugins and creates plugin connection configurations.\n\n## Usage\n\nSee [action.yml](action.yml).\n\n## Examples\n\n### Install the latest version Steampipe\n\n```yaml\n- name: Install Steampipe\n  uses: turbot/steampipe-action-setup@v1\n```\n\n### Install a specific version of Steampipe\n\n```yaml\n- name: Install Steampipe v0.19.4\n  uses: turbot/steampipe-action-setup@v1\n  with:\n    steampipe-version: 0.19.4\n```\n\n\u003e For available Steampipe versions refer to [Steampipe Releases](https://github.com/turbot/steampipe/releases).\n\n### Configure multiple AWS connections\n\n```yaml\n- name: Setup Steampipe\n  uses: turbot/steampipe-action-setup@v1\n  with:\n    plugin-connections: |\n      connection \"aws_prod\" {\n        plugin     = \"aws\"\n        access_key = \"${{ secrets.AWS_ACCESS_KEY_ID_PROD }}\"\n        secret_key = \"${{ secrets.AWS_SECRET_ACCESS_KEY_PROD }}\"\n        regions    = [\"us-east-1\", \"us-west-2\"]\n      }\n\n      connection \"aws_dev\" {\n        plugin     = \"aws\"\n        access_key = \"${{ secrets.AWS_ACCESS_KEY_ID_DEV }}\"\n        secret_key = \"${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }}\"\n        regions    = [\"*\"]\n      }\n\n- name: Run queries\n  run: |\n    steampipe query \"select account_id from aws_prod.aws_account\"\n    steampipe query \"select account_id from aws_dev.aws_account\"\n```\n\n### Install a specific plugin version\n\n```yaml\n- name: Setup Steampipe\n  uses: turbot/steampipe-action-setup@v1\n  with:\n    plugin-connections: |\n      connection \"net\" {\n        plugin = \"net@0.7\"\n      }\n- name: Run query\n  run: steampipe query \"select issuer from net_certificate where domain = 'github.com'\"\n```\n\n### Create connections using JSON\n\n```yaml\n- name: Setup Steampipe\n  uses: turbot/steampipe-action-setup@v1\n  with:\n    plugin-connections: |\n      {\n        \"connection\": {\n          \"aws\": {\n            \"plugin\": \"aws\",\n            \"profile\": \"default\",\n            \"regions\": [\"us-east-1\", \"eu-west-1\"]\n          },\n          \"github\": {\n            \"plugin\": \"github\",\n            \"token\": \"${{ secrets.GITHUB_TOKEN }}\"\n          }\n        }\n      }\n- name: Run query\n  run: steampipe query \"select name from aws_s3_bucket\"\n```\n\n## Advanced Examples\n\n### Run local controls\n\n```yaml\nsteps:\n  - uses: actions/checkout@v3\n  - uses: turbot/steampipe-action-setup@v1\n    with:\n      steampipe-version: 'latest'\n      plugin-connections: |\n        connection \"github\" {\n          plugin = \"github\"\n          token  = \"${{ secrets.GITHUB_TOKEN }}\"\n        }\n\n        connection \"scalingo\" {\n          plugin      = \"francois2metz/scalingo\"\n          type        = \"aggregator\"\n          connections = [\"scalingo2\", \"scalingo3\"]\n        }\n\n        connection \"scalingo2\" {\n          plugin  = \"francois2metz/scalingo\"\n          token   = \"${{ secrets.SCALINGO_TOKEN }}\"\n          regions = [\"osc-fr1\"]\n        }\n\n        connection \"scalingo3\" {\n          plugin  = \"francois2metz/scalingo\"\n          token   = \"${{ secrets.SCALINGO_SECNUM_TOKEN }}\"\n          regions = [\"osc-fr1\", \"osc-secnum-fr1\"]\n        }\n  - name: Run checks\n    id: checks\n    continue-on-error: true\n    run: steampipe check all --progress=false --export=results.md\n  - name: Output markdown to the step\n    run: cat results.md \u003e\u003e $GITHUB_STEP_SUMMARY\n  - name: Exit\n    if: ${{ steps.checks.outcome == 'failure' }}\n    run: exit 1\n```\n\nRun local controls and post failure on slack with a [custom control output template](https://steampipe.io/docs/develop/writing-control-output-templates).\nThe template must be installed before. It's available in the [templates directory](./templates).\n\n```yaml\nsteps:\n  - uses: actions/checkout@v3\n  - uses: turbot/steampipe-action-setup@v1\n    with:\n      steampipe-version: 'latest'\n      plugin-connections: |\n        connection \"github\" {\n          plugin = \"github\"\n          token  = \"${{ secrets.GITHUB_TOKEN }}\"\n        }\n\n        connection \"scalingo\" {\n          plugin      = \"francois2metz/scalingo\"\n          type        = \"aggregator\"\n          connections = [\"scalingo2\", \"scalingo3\"]\n        }\n\n        connection \"scalingo2\" {\n          plugin  = \"francois2metz/scalingo\"\n          token   = \"${{ secrets.SCALINGO_TOKEN }}\"\n          regions = [\"osc-fr1\"]\n        }\n\n        connection \"scalingo3\" {\n          plugin  = \"francois2metz/scalingo\"\n          token   = \"${{ secrets.SCALINGO_SECNUM_TOKEN }}\"\n          regions = [\"osc-fr1\", \"osc-secnum-fr1\"]\n        }\n  - name: Install slack output template\n    run: |\n      mkdir -p ~/.steampipe/check/templates/slack\n      cp slackoutput.tmpl ~/.steampipe/check/templates/slack/output.tmpl\n      sed -i s/##RUN_ID##/${{ github.run_id }}/ ~/.steampipe/check/templates/slack/output.tmpl\n      sed -i s/##SERVER_URL##/${{ github.server_url }}/ ~/.steampipe/check/templates/slack/output.tmpl\n      sed -i s/##REPOSITORY##/${{ github.repository }}/ ~/.steampipe/check/templates/slack/output.tmpl\n  - name: Run checks\n    id: checks\n    continue-on-error: true\n    run: steampipe check all --progress=false --export=results.md --export=results.slack\n  - name: Output markdown to the step\n    run: cat results.md \u003e\u003e $GITHUB_STEP_SUMMARY\n  - name:\n    run: |\n      echo \"STEAMPIPE_OUTPUT\u003c\u003cEOF\" \u003e\u003e $GITHUB_ENV\n      cat results.slack \u003e\u003e $GITHUB_ENV\n      echo \"EOF\" \u003e\u003e $GITHUB_ENV\n  - name: Post to a Slack channel\n    if: ${{ steps.checks.outcome == 'failure' }}\n    uses: slackapi/slack-github-action@v1.19.0\n    with:\n      channel-id: ${{ secrets.SLACK_CHANNEL_ID }}\n      payload: |\n        ${{ env.STEAMPIPE_OUTPUT }}\n    env:\n      SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}\n  - name: Exit\n    if: ${{ steps.checks.outcome == 'failure' }}\n    run: exit 1\n```\n\n## Helpful Links\n\n- [Steampipe docs](https://steampipe.io/docs)\n- [Steampipe plugins](https://hub.steampipe.io/plugins)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-action-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fsteampipe-action-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-action-setup/lists"}