Skip to content

Replace custom Slack file upload with official slack-github-action - #595

Merged
pasibun merged 2 commits into
mainfrom
copilot/replace-wcag-action-with-slack
Feb 25, 2026
Merged

Replace custom Slack file upload with official slack-github-action#595
pasibun merged 2 commits into
mainfrom
copilot/replace-wcag-action-with-slack

Conversation

Copilot AI commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Replaces custom curl-based Slack API calls with the official slackapi/slack-github-action@v2.1.1 for uploading WCAG reports.

Changes

  • Before: 48 lines of bash with manual API orchestration (files.getUploadURLExternal, upload, files.completeUploadExternal)
  • After: Single action step using files.uploadV2 method
- name: Upload WCAG report to Slack
  if: always()
  uses: slackapi/slack-github-action@v2.1.1
  with:
    method: files.uploadV2
    token: ${{ secrets.SLACK_BOT_TOKEN }}
    payload: |
      channel_id: ${{ secrets.SLACK_CHANNEL_ID }}
      initial_comment: "WCAG rapport:"
      file: "./wcag-report.txt"
      filename: "wcag-report.txt"

Preserves existing behavior: weekly Sunday runs at 02:00 UTC, manual trigger capability, uploads on both success and failure.

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:

  • docs.slack.dev
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

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


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: pasibun <9033551+pasibun@users.noreply.github.com>
Copilot AI changed the title [WIP] Replace WCAG check action with Slack GitHub action Replace custom Slack file upload with official slack-github-action Feb 12, 2026
Copilot AI requested a review from pasibun February 12, 2026 13:12
@pasibun
pasibun marked this pull request as ready for review February 25, 2026 05:37
@pasibun
pasibun merged commit dd80828 into main Feb 25, 2026
4 of 5 checks passed
@pasibun
pasibun deleted the copilot/replace-wcag-action-with-slack branch February 25, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants