Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed error querying github_workflow for repository that contains dynamic workflows Closes #410 #412

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Apr 2, 2024

Example query results

Results
Before Fix:

> select *
    from                                          
        github_workflow
    where              
        repository_full_name = 'nextstrain/hbv';
Warning: 2 plugins required by 4 connections are missing. To install, please run: steampipe plugin install doppler godaddy

Error: github: GET https://api.github.com/repos/nextstrain/hbv/contents/dynamic/pages/pages-build-deployment?ref=workflows: 404 No commit found for the ref workflows [] (SQLSTATE HV000)

+----------------------+------+----+------+-----------+------------+----------+---------+-------+------------+-----+-----------------------+----------------------------+----------+------+
| repository_full_name | name | id | path | badge_url | created_at | html_url | node_id | state | updated_at | url | workflow_file_content | workflow_file_content_json | pipeline | _ctx |
+----------------------+------+----+------+-----------+------------+----------+---------+-------+------------+-----+-----------------------+----------------------------+----------+------+
+----------------------+------+----+------+-----------+------------+----------+---------+-------+------------+-----+-----------------------+----------------------------+----------+------+



After Fix:

> select *
    from                                          
        github_workflow
    where              
        repository_full_name = 'nextstrain/hbv';
Warning: 2 plugins required by 4 connections are missing. To install, please run: steampipe plugin install doppler godaddy
+----------------------+------------------------+----------+--------------------------------------+--------------------------------------------------------------------------------------------+---------------------------+--------------->
| repository_full_name | name                   | id       | path                                 | badge_url                                                                                  | created_at                | html_url      >
+----------------------+------------------------+----------+--------------------------------------+--------------------------------------------------------------------------------------------+---------------------------+--------------->
| nextstrain/hbv       | pages-build-deployment | 88698912 | dynamic/pages/pages-build-deployment | https://github.com/nextstrain/hbv/actions/workflows/pages/pages-build-deployment/badge.svg | 2024-03-07T08:11:50+05:30 | https://github>
| nextstrain/hbv       | Run the builds         | 67029840 | .github/workflows/run-builds.yaml    | https://github.com/nextstrain/hbv/workflows/Run%20the%20builds/badge.svg                   | 2023-08-23T05:20:45+05:30 | https://github>
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
|                      |                        |          |                                      |                                                                                            |                           |               >
+----------------------+------------------------+----------+--------------------------------------+--------------------------------------------------------------------------------------------+---------------------------+--------------->

@ParthaI ParthaI self-assigned this Apr 2, 2024
@bigdatasourav bigdatasourav merged commit a99b96b into main Apr 2, 2024
1 check passed
@bigdatasourav bigdatasourav deleted the issue-410 branch April 2, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error querying github_workflow for repository that contains dynamic workflows
2 participants