Skip to content

Commit

Permalink
Use a customized github plugin for Steampipe
Browse files Browse the repository at this point in the history
Includes the following changes:

  - <turbot/steampipe-plugin-github#463>
  - <turbot/steampipe-plugin-github#464>
  - <turbot/steampipe-plugin-github#465>

for additional functionality around run attempts (to be used in the next
commit) and improved efficiency listing runs (automatically!).

The hope is that I can get my changes upstreamed and we can stop using a
customized and vendored version, but I'm not sure if that's likely or
not.
  • Loading branch information
tsibley committed Dec 19, 2024
1 parent a3a2b8d commit 8e4f50c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
cache-dependency-path: steampipe-plugins/*/go.sum

- name: Install Steampipe
run: |
sudo /bin/sh -c "$(curl -fsSL https://steampipe.io/install/steampipe.sh)"
steampipe --version
steampipe plugin install github
steampipe plugin install net
- uses: actions/checkout@v4
make -C steampipe-plugins/github
- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Requirements:
- [Node.js](https://nodejs.org/en/download) (at least 16, higher probably works too)
- [Steampipe](https://steampipe.io/downloads) CLI
- [net plugin](https://hub.steampipe.io/plugins/turbot/net) for Steampipe: `steampipe plugin install net`
- [github plugin](https://hub.steampipe.io/plugins/turbot/github) for Steampipe: `steampipe plugin install github`
- [github plugin](https://hub.steampipe.io/plugins/turbot/github) for Steampipe: `steampipe plugin install github && make -C steampipe-plugins/github`
- `GITHUB_TOKEN` environment variable to be set, e.g. using `GITHUB_TOKEN=$(gh auth token)`
- GNU Make
- PostgreSQL `psql` client (no server components necessary)
Expand Down
2 changes: 1 addition & 1 deletion pathogen-workflows.sql
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ create or replace function github_actions_repository_workflow_runs_on_branch(
)
returns setof github_actions_repository_workflow_run
language sql as $$
-- Invokes https://api.github.com/repos/{+repo}/actions/runs{?branch} (filters on workflow id locally)
-- Invokes https://api.github.com/repos/{+repo}/actions/workflows/{id}/runs{?branch}
select *
from github_actions_repository_workflow_run as run
where run.repository_full_name = _repository_full_name
Expand Down
7 changes: 7 additions & 0 deletions steampipe-plugins/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Customized Steampipe plugins

Install these for local use by the Steampipe CLI by running `make` inside them
(or from outside with `-C dir`, e.g. `make -C steampipe-plugins/github`).
Requires [Golang](https://golang.org/doc/install).

- [github](./github)`git subrepo` vendoring of <https://github.com/nextstrain/steampipe-plugin-github/tree/nextstrain/status>

0 comments on commit 8e4f50c

Please sign in to comment.