Skip to content

Fix install script test failure by adding GitHub API authentication - #6219

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-install-script-test-failure
Dec 12, 2025
Merged

Fix install script test failure by adding GitHub API authentication#6219
pelikhan merged 2 commits into
mainfrom
copilot/fix-install-script-test-failure

Conversation

Copilot AI commented Dec 12, 2025

Copy link
Copy Markdown
Contributor

The install script test was failing on macOS-latest when fetching release information due to unauthenticated GitHub API requests hitting rate limits (60/hour) or returning 403 errors.

Changes

  • Pass GITHUB_TOKEN as GH_TOKEN environment variable to the install script test step
  • Leverages existing authentication logic in install-gh-aw.sh that checks for GH_TOKEN and adds Authorization: Bearer header to API requests
  • Authenticated requests have 5000/hour rate limit vs 60/hour unauthenticated
- name: Test full install script (without dummy version)
  shell: bash
  env:
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  run: |
    ./install-gh-aw.sh

The workflow already has contents: read permission which is sufficient for the API call. The install script handles auth failure gracefully by falling back to unauthenticated requests.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/githubnext/gh-aw/releases/latest
    • Triggering command: /usr/bin/curl curl -s -f REDACTED (http block)
    • Triggering command: /usr/bin/curl curl -v REDACTED (http block)
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>🚨 Install Script Test Failed</issue_title>
<issue_description>The install script test workflow failed.

Workflow Run: https://github.com/githubnext/gh-aw/actions/runs/20157888506
Triggered by: schedule
Commit: d3ca6b7

Details

The install script testing workflow detected failures when testing the install-gh-aw.sh script across different platforms.

Please review the workflow logs to identify which platform(s) failed and investigate the issue.

Affected Platforms

This workflow tests the install script on:

  • Ubuntu (latest and 22.04)
  • macOS (latest ARM and Intel-based 13)
  • Windows (latest)

Next Steps

  1. Check the workflow run logs for detailed error messages
  2. Review changes to install-gh-aw.sh that may have caused the failure
  3. Test the install script locally on the affected platform(s)
  4. Fix the issue and verify with scripts/test-install-script.sh

This issue was automatically created by the install script test workflow.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix install script test workflow failures Fix install script test failure by adding GitHub API authentication Dec 12, 2025
Copilot AI requested a review from mnkiefer December 12, 2025 06:29
@pelikhan
pelikhan marked this pull request as ready for review December 12, 2025 10:19
@pelikhan
pelikhan merged commit 3614bbd into main Dec 12, 2025
148 checks passed
@pelikhan
pelikhan deleted the copilot/fix-install-script-test-failure branch December 12, 2025 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚨 Install Script Test Failed

3 participants