@@ -14,12 +14,6 @@ permissions:
1414 packages : write
1515
1616jobs :
17- build-images :
18- name : " Build AgentEx Images"
19- uses : ./.github/workflows/build-agentex.yml
20- with :
21- commit-sha : ${{ inputs.commit-sha || 'main' }}
22-
2317 pull-agent-images :
2418 name : " Pull AgentEx Images"
2519 runs-on : ubuntu-latest
@@ -31,17 +25,48 @@ jobs:
3125 username : ${{ github.repository_owner }}
3226 password : ${{ secrets.GITHUB_TOKEN }}
3327
34- - name : Discover and pull agentex-python packages
28+ - name : Debug API Permissions
29+ env :
30+ GH_TOKEN : ${{ github.token }}
31+ run : |
32+ echo "π Testing API permissions..."
33+
34+ # Test basic user access
35+ echo "π€ Current user:"
36+ gh api user --jq '.login' || echo "β User API failed"
37+
38+ # Test organization access
39+ echo "π’ Organization access:"
40+ gh api orgs/scaleapi --jq '.login' || echo "β Org API failed"
41+
42+ # Test different package API endpoints
43+ echo "π¦ Testing package API endpoints:"
44+
45+ echo "1. Basic packages endpoint:"
46+ gh api "orgs/scaleapi/packages" --jq 'length' || echo "β Basic packages API failed"
47+
48+ echo "2. Container packages endpoint:"
49+ gh api "orgs/scaleapi/packages?package_type=container" --jq 'length' || echo "β Container packages API failed"
50+
51+ echo "3. Public packages endpoint:"
52+ gh api "orgs/scaleapi/packages?package_type=container&visibility=public" --jq 'length' || echo "β Public packages API failed"
53+
54+ - name : Discover and pull scale-agentex-python packages
3555 env :
3656 GH_TOKEN : ${{ github.token }}
3757 run : |
38- echo "π Discovering packages from agentex-python repo..."
58+ echo "π Discovering packages from scale-agentex-python repo..."
59+
60+ # First get all packages and save to temp file to avoid shell issues
61+ gh api "orgs/scaleapi/packages?package_type=container" > /tmp/packages.json
3962
40- # Get package names using the API query
41- PACKAGES=$(gh api "orgs/scaleapi /packages?package_type=container" -- jq '.[] | select(.repository.name == "agentex-python") | .name')
63+ # Extract packages from scale-agentex-python repo
64+ PACKAGES=$(cat /tmp /packages.json | jq -r '.[] | select(.repository.name == "scale- agentex-python") | .name')
4265
4366 if [ -z "$PACKAGES" ]; then
44- echo "β No packages found in agentex-python repo"
67+ echo "β No packages found in scale-agentex-python repo"
68+ echo "π Available packages and their repos:"
69+ cat /tmp/packages.json | jq -r '.[] | "\(.name) -> \(.repository.name // "null")"'
4570 exit 0
4671 fi
4772
0 commit comments