I'm using actions/github-script@v7.0.1 to call github.rest.packages.listPackagesForOrganization. When I'm using it with other package types, I don't have any issue. but 'container' type returns error 400. I expect 200.
I cannot reproduce by using a http call on the api url with a personal token.
...
let packagesResponse;
try {
packagesResponse = await github.rest.packages.listPackagesForOrganization({
org: org,
package_type: 'container'
});
} catch (error) {
console.error(`Error fetching packages of type ${packageType}:`, error);
continue;
}
...
Same result with:
let packagesResponse;
try {
packagesResponse = await github.request('GET /orgs/{org}/packages', {
org: org,
package_type: packageType
});
} catch (error) {
console.error(`Error fetching packages of type ${packageType}:`, error);
continue;
}
What happened?
I'm using
actions/github-script@v7.0.1
to call github.rest.packages.listPackagesForOrganization. When I'm using it with other package types, I don't have any issue. but 'container' type returns error 400. I expect 200.I cannot reproduce by using a http call on the api url with a personal token.
Same result with:
https://github.dev/UtopikSandcastle/accesscontrol-api/blob/UtopikSolutions-patch-1/.github/workflows/cleanup.yml
Versions
actions/github-script@v7
Relevant log output