Skip to content

Drop slack/web-api to replace axios with fetch #7431

@Zaimwa9

Description

@Zaimwa9

Context
Axios has triggered multiple CVEs (critical and high). We inherit it as a transitive dependency from @slack/web-api.
We can drop it by replacing the library with direct fetch calls

Steps to replace

  1. Rewrite api/slack-client.js to replace WebClient.chat.postMessage with one fetch call.
  2. Rewrite e2e/slack-e2e-reporter.ts to replace postMessage (one fetch) and files.uploadV2 (3-step flow: get upload URL → upload bytes → complete upload).
  3. Drop the dep, remove @slack/web-api from package.json and the axios override

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions