Skip to content

Instantly share code, notes, and snippets.

@haxwithaxe
Last active October 10, 2023 12:07
Show Gist options
  • Save haxwithaxe/9a5c946bc4d85ec67f7f1187fb5de10b to your computer and use it in GitHub Desktop.
Save haxwithaxe/9a5c946bc4d85ec67f7f1187fb5de10b to your computer and use it in GitHub Desktop.
Get a list of images from ghcr.io for a given project.
{
"schema_version": 1,
"name": "ghcr.io containers versions",
"description": "Get a list of images from ghcr.io for a given project. See https://docs.github.com/en/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-an-organization or https://docs.github.com/en/rest/packages/packages?apiVersion=2022-11-28#list-packages-for-a-user for the URL to use for other people's container images. See https://docs.github.com/en/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-the-authenticated-user for your own container images.",
"source_url": false,
"guid": "d4746274ea8ca18a53dc363248030a66",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2023-10-10T12:01:16Z",
"agents": [
{
"type": "Agents::PostAgent",
"name": "ghcr.io versions huginn-single-process",
"disabled": false,
"guid": "ffa09b8085c3cf077b5826562f39678e",
"options": {
"post_url": "https://api.github.com/orgs/huginn/packages/container/huginn-single-process/versions",
"expected_receive_period_in_days": "1",
"content_type": "text/json",
"method": "get",
"headers": {
"Accept": "application/vnd.github+json",
"Authorization": "Bearer {% credential github_access_token %}",
"X-GitHub-Api-Version": "2022-11-28"
},
"emit_events": "true",
"parse_body": "true",
"no_merge": "true",
"output_mode": "clean",
"comment": "https://docs.github.com/en/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-an-organization",
"event_headers_style": "downcased"
},
"schedule": "never",
"keep_events_for": 0,
"propagate_immediately": false
}
],
"links": [
],
"control_links": [
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment