Skip to content

Ensure gh CLI is installed and authenticated in Slack notification steps#64044

Closed
potiuk wants to merge 1 commit intoapache:mainfrom
potiuk:ensure-gh-auth-slack-notification
Closed

Ensure gh CLI is installed and authenticated in Slack notification steps#64044
potiuk wants to merge 1 commit intoapache:mainfrom
potiuk:ensure-gh-auth-slack-notification

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Mar 21, 2026

Ensure gh CLI is available and authenticated before running
slack_notification_state.py in the "Determine notification action" step
of both ci-amd-arm.yml and ci-notification.yml.

The script uses gh api and gh run download internally, so this adds:

  • A command -v gh check that fails with a clear error if gh is missing
  • gh auth status || gh auth login --with-token to ensure authentication
  • GH_TOKEN env var for automatic gh CLI authentication

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 4.6

Generated-by: Claude Opus 4.6 following the guidelines

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Mar 21, 2026
@potiuk potiuk force-pushed the ensure-gh-auth-slack-notification branch from b05b6d4 to 6b3eeb2 Compare March 21, 2026 20:48
@potiuk
Copy link
Member Author

potiuk commented Mar 21, 2026

Seems that gh accepts both GH_TOKEN and GITHUB_TOKEN - TIL

- Ensure gh CLI is available and authenticated before running
  slack_notification_state.py in the "Determine notification action" step
  of both ci-amd-arm.yml and ci-notification.yml
- Add missing words to docs/spelling_wordlist.txt to fix docs build
  spelling errors
@potiuk potiuk force-pushed the ensure-gh-auth-slack-notification branch from 6b3eeb2 to 60fb505 Compare March 21, 2026 20:54
@potiuk potiuk marked this pull request as draft March 21, 2026 21:02
@potiuk potiuk closed this Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants