How to list only repositories using GitHub Actions?

Is there a way to list only repositories using GitHub Actions?

The best I’ve managed is using the advanced search to construct this:

where MYORG can be replaced the organisation to be searched.

Hi @mcarans,

You can use the rest api to get the org repositories:

Command sample as below:

          curl --request GET \
             --header 'authorization: Bearer ${{ secrets.PAT1 }}' \
             --header 'content-type: application/vnd.github.nebula-preview+json' \
             --url | jq -r '.[] | .full_name'


Please refer to the api doc for more details:


1 Like

Thanks, that’s helpful.

It would be great if there were a way to do it in the UI that is less hacky than the method I used in the OP.

Hi @mcarans,

Thanks for your reply! For github actions, you should use the command to get the organization info.

For UI, you can raise a new ticket here for confirmation. :wink:

Thanks for your help!