diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c206bee63d7..0325ed04d73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2453,6 +2453,7 @@ jobs: integration-marketplace-compile: name: Integration Compile gh-aw-marketplace + needs: [build] runs-on: ubuntu-latest timeout-minutes: 20 permissions: @@ -2464,35 +2465,21 @@ jobs: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Set up Go - id: setup-go - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 + - name: Download gh-aw binary artifact + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4 with: - go-version-file: go.mod - cache: true - - - name: Report Go cache status - run: | - if [ "${{ steps.setup-go.outputs.cache-hit }}" == "true" ]; then - echo "✅ Go cache hit" >> $GITHUB_STEP_SUMMARY - else - echo "⚠️ Go cache miss" >> $GITHUB_STEP_SUMMARY - fi - - - name: Download dependencies - run: go mod download - - - name: Verify dependencies - run: go mod verify + name: gh-aw-linux-amd64 + path: . - - name: Build gh-aw binary - run: make build + - name: Prepare gh-aw binary + run: chmod +x ./gh-aw - name: Clone github/gh-aw-marketplace repository run: | echo "Cloning github/gh-aw-marketplace repository..." cd /tmp - git clone --depth 1 https://github.com/github/gh-aw-marketplace.git + AUTH_HEADER=$(printf 'x-access-token:%s' '${{ github.token }}' | base64 | tr -d '\n') + git -c http.https://github.com/.extraheader="Authorization: Basic ${AUTH_HEADER}" clone --depth 1 https://github.com/github/gh-aw-marketplace.git echo "✅ Repository cloned successfully" - name: Compile gh-aw-marketplace workflows